diff --git a/JS_Runner/runJs.html b/JS_Runner/runJs.html index ba3f139..53a5a74 100644 --- a/JS_Runner/runJs.html +++ b/JS_Runner/runJs.html @@ -72,6 +72,7 @@ } async function run(){ + logger.innerHTML = '' const queryString = window.location.search; const urlParams = new URLSearchParams(queryString) if (!urlParams.has('file')){ @@ -109,10 +110,7 @@ "Tomato"); }); - window.onload = async function(){ - logger.innerHTML = '' - await run(); - } + await run(); diff --git a/Orient/generator.html b/Orient/generator.html index 11be4e3..4aea795 100644 --- a/Orient/generator.html +++ b/Orient/generator.html @@ -37,7 +37,7 @@ return splitToNChunks(box, n) } - window.update = async function() { + function update() { let newUrl = getShowerUrl() const number = Number(numberItems.value) const secretChunks = getDataChunks(secretText.value, number) @@ -55,9 +55,7 @@ } } - window.onload = async function() { - await update() - } + update()
diff --git a/Orient/index.html b/Orient/index.html index 333b38d..23ca17f 100644 --- a/Orient/index.html +++ b/Orient/index.html @@ -49,7 +49,7 @@ return (new TextDecoder()).decode(msgOut) } - window.onload = function(){ + function run(){ const queryString = window.location.search; const urlParams = new URLSearchParams(queryString) if (!urlParams.has('D')){ @@ -79,6 +79,8 @@ codeField.innerText = text } } + + run()