From: Ardis Lu Date: Sat, 30 Sep 2023 04:30:45 +0000 (-0700) Subject: Don't show original UI if there's any hash X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=70866658ad88037b74b579c856df7aa5e758fe8b;p=zip-page Don't show original UI if there's any hash --- diff --git a/index.html b/index.html index 9c6855b..cc2faef 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,7 @@ - +

zip-page

@@ -143,6 +143,11 @@ const url = `${location.origin}/#${b64}`; e.target.elements['url'].innerHTML = `${url.substring(0, 60)}${url.length > 60 ? '...' : ''}`; }); + + // Blocks flash of original UI before document.write in the header script executes + if (location.hash === '') { + document.querySelector('body').style.setProperty('display', ''); + }