summaryrefslogtreecommitdiff
path: root/app/public
diff options
context:
space:
mode:
Diffstat (limited to 'app/public')
-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);