From 4aa90503e2b948b90c99598748a658c7d172f463 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 18 Mar 2015 09:28:08 +0000 Subject: reload despite hash on end of URL --- assets/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/js/main.js b/assets/js/main.js index 04dee03..1586c5c 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -90,7 +90,7 @@ function startLesson() // set the cookie and reload to start the session createCookie("class_cookie", cookieString, 1); // reload, preventing Firefox from resubmitting POST data - window.location.assign(document.URL); + window.location.assign(document.URL.split("#")[0]); } // end a class @@ -193,7 +193,7 @@ function leftClockToggle() createCookie("clock_cookie", "1", 1); // reload, preventing Firefox from resubmitting POST data - window.location.assign(document.URL); + window.location.assign(document.URL.split("#")[0]); } // function to make a FlipClock with a few additional features. Not -- cgit v1.2.3