We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c2160 commit 6003725Copy full SHA for 6003725
src/client.html
@@ -1,6 +1,6 @@
1
<!-- browser-reload script, automatically added by the LiveServer.jl -->
2
<script>
3
-var ws_liveserver_M3sp9 = new WebSocket("ws://" + location.host + location.pathname);
+var ws_liveserver_M3sp9 = new WebSocket((location.protocol=="https:" ? "wss:" : "ws:") + "//" + location.host + location.pathname);
4
ws_liveserver_M3sp9.onmessage = function(msg) {
5
if (msg.data === "update") {
6
ws_liveserver_M3sp9.close();
0 commit comments