diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-04-18 02:03:53 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-04-18 02:03:53 -0400 |
commit | 6e8bedd4551edaaa50b628d4648a7b7b95351309 (patch) | |
tree | f942c95e7f4c91b8095433300519e140dd867f1d /public/js/app.js | |
parent | 487e4af1501d28d24d9a881367c4b9173b84f7f8 (diff) | |
download | thedroneely.com-6e8bedd4551edaaa50b628d4648a7b7b95351309.tar.gz thedroneely.com-6e8bedd4551edaaa50b628d4648a7b7b95351309.tar.bz2 thedroneely.com-6e8bedd4551edaaa50b628d4648a7b7b95351309.zip |
public/js/app.js: Remove url parameters on load
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 1721a38..605b2b4 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -72,6 +72,12 @@ document.addEventListener('touchstart', function(event) { }); +/** + * Remove url query string on load + */ +var url = window.location.href.split('?')[0]; +window.history.replaceState(null, null, url); + /** * Hide elements on scroll events |