From 70866658ad88037b74b579c856df7aa5e758fe8b Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 29 Sep 2023 21:30:45 -0700 Subject: [PATCH] Don't show original UI if there's any hash --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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', ''); + } -- 2.47.3