diff options
author | Alexis Hovorka <[email protected]> | 2024-02-21 16:17:24 -0700 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2024-02-21 16:17:24 -0700 |
commit | caa495340aef5b765bed193da51cd4bf48a4d570 (patch) | |
tree | 3c12ea9841961d454bfba41ab1c32889537d5804 /app/public | |
parent | 8f44593d55c82197854d9e29174fe66c4e50ebde (diff) |
[fix] Misc cleanup
Diffstat (limited to 'app/public')
-rw-r--r-- | app/public/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/public/main.js b/app/public/main.js index 5746142..2a30c45 100644 --- a/app/public/main.js +++ b/app/public/main.js @@ -1,6 +1,5 @@ document.addEventListener("DOMContentLoaded", async () => { "use strict"; -const secure = location.protocol === "https:"; const $ = (s,c) => (c||document).querySelector(s); function $$(x,y,z,a){a=(z||document).querySelectorAll(x);if(typeof y=="function")[].forEach.call(a,y);return a} function m(a,b,c){c=document;b=c.createElement(b||"p");b.innerHTML=a.trim();for(a=c.createDocumentFragment();c=b.firstChild;)a.appendChild(c);return a.firstChild} @@ -16,6 +15,7 @@ function debounce(fn, delay) { } } +//const secure = location.protocol === "https:"; //sock.init(`ws${secure?"s":""}://${location.host}/ws`); //sock.on("hello", e => { // console.log("hello", e); |