From 9cf2103d524ed36b007b5a70b9fcb390b1b22677 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 21 Mar 2022 18:49:59 -0700 Subject: [PATCH] Call history.replaceState when clicking the fullscreen button. --- voussoir.net/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voussoir.net/index.html b/voussoir.net/index.html index d325db9..1e40efe 100644 --- a/voussoir.net/index.html +++ b/voussoir.net/index.html @@ -1114,6 +1114,7 @@ function fullscreen_on() element.classList.add("hidden"); } } + history.replaceState(null, "", `${window.location.pathname}?justthesplash`); document.body.classList.add("justthesplash"); } @@ -1124,6 +1125,7 @@ function fullscreen_off() { element.classList.remove("hidden"); } + history.replaceState(null, "", `${window.location.pathname}`); document.body.classList.remove("justthesplash"); }