summaryrefslogtreecommitdiff
path: root/app/public/main.js
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2024-02-21 16:17:24 -0700
committerAlexis Hovorka <[email protected]>2024-02-21 16:17:24 -0700
commitcaa495340aef5b765bed193da51cd4bf48a4d570 (patch)
tree3c12ea9841961d454bfba41ab1c32889537d5804 /app/public/main.js
parent8f44593d55c82197854d9e29174fe66c4e50ebde (diff)
[fix] Misc cleanupHEADmain
Diffstat (limited to 'app/public/main.js')
-rw-r--r--app/public/main.js2
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);