Skip to content

Commit 6e86021

Browse files
committed
Merge branch 'windows'
2 parents 624f614 + 2ff34bb commit 6e86021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chat/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// and so we should scroll the next message into view when received.
55
let expectingMessage = false
66
function dial() {
7-
const protocol = location.protocol === 'https' ? 'wss' : 'ws';
7+
const protocol = location.protocol.includes('https') ? 'wss' : 'ws';
88
const conn = new WebSocket(`${protocol}://${location.host}/subscribe`)
99

1010
conn.addEventListener('close', ev => {

0 commit comments

Comments
 (0)