Unverified Commit 540bbbdb authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

Handle https when creating socket

parent c4723776
...@@ -490,7 +490,7 @@ document.addEventListener('drop', (event) => { ...@@ -490,7 +490,7 @@ document.addEventListener('drop', (event) => {
if(ws) return; if(ws) return;
let opened = false; let opened = false;
ws = new WebSocket(`ws://${location.host}/ws`); ws = new WebSocket(`ws${window.location.protocol === "https"? "s" : ""}://${location.host}/ws`);
ws.addEventListener("open", () => { ws.addEventListener("open", () => {
opened = true; opened = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment