Skip to content

Commit 1306abe

Browse files
fix: ie11 compatibility
1 parent e330423 commit 1306abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-src/default/utils/createSocketUrl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getSocketUrl(urlParts, loc) {
5454
if (
5555
(hostname === '0.0.0.0' || hostname === '::') &&
5656
loc.hostname &&
57-
loc.protocol.startsWith('http')
57+
loc.protocol.indexOf('http') === 0
5858
) {
5959
hostname = loc.hostname;
6060
}

0 commit comments

Comments
 (0)