Fix bug with loading data from cookies
Bit of groundwork for an actual reset button
This commit is contained in:
parent
8bae3ebacf
commit
1890095df9
|
@ -25,8 +25,9 @@
|
||||||
window.scrollTo(0, document.body.scrollHeight);
|
window.scrollTo(0, document.body.scrollHeight);
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
if (document.getElementById('company').value === "BananaCorp") {
|
if (window.location.search.includes("reset=true")) {
|
||||||
return
|
window.history.pushState({},document.title,window.location.pathname);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cookies = [
|
cookies = [
|
||||||
|
|
Loading…
Reference in New Issue