Fix bug with loading data from cookies

Bit of groundwork for an actual reset button
This commit is contained in:
Sage Vaillancourt 2021-07-31 19:18:54 -04:00
parent 8bae3ebacf
commit 1890095df9
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@
window.scrollTo(0, document.body.scrollHeight);
{% endif %}
if (document.getElementById('company').value === "BananaCorp") {
return
if (window.location.search.includes("reset=true")) {
window.history.pushState({},document.title,window.location.pathname);
return;
}
cookies = [