From 33a3270a4954ae3a6a5376c7b0bfea3f4490a91c Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 7 Jan 2021 12:37:56 -0500 Subject: [PATCH] Can't update a constant --- static/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index bc4a018..0b11a38 100644 --- a/static/app.js +++ b/static/app.js @@ -7,7 +7,7 @@ const btn = document.getElementById("myBtn"); // Get the element that closes the modal const span = document.getElementsByClassName("close")[0]; -const mode = new URLSearchParams(window.location.search).get("mode"); +var mode = new URLSearchParams(window.location.search).get("mode"); const archiveLink = document.querySelector("#archive-link") const pendingLink = document.querySelector("#pending-link")