aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-18 09:28:08 +0000
committerSean Whitton <spwhitton@spwhitton.name>2015-03-18 09:28:08 +0000
commit4aa90503e2b948b90c99598748a658c7d172f463 (patch)
tree7e431e85eb260bac08698edcf904e958a63e45b6
parentf9a3f400d04a4d0c8d8dccc42028a56181a8c9d5 (diff)
downloadsariulclocks-4aa90503e2b948b90c99598748a658c7d172f463.tar.gz
reload despite hash on end of URL
-rw-r--r--assets/js/main.js4
1 files changed, 2 insertions, 2 deletions
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