"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "d13456012f7289dd8e339d0be895c196a214172f"
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) => {
if(ws) return;
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", () => {
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