From caa495340aef5b765bed193da51cd4bf48a4d570 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Wed, 21 Feb 2024 16:17:24 -0700 Subject: [fix] Misc cleanup --- app/public/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/public') 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); -- cgit v1.2.3-70-g09d2