add /?reset to reset all settings

This commit is contained in:
Matthias Wirth
2020-10-16 23:49:03 +02:00
parent 6a8bdcf648
commit 9309eb58f7

View File

@@ -35,7 +35,11 @@ let uuid = null;
try {
const search = new URLSearchParams(window.location.search);
if (search.has('reset')) {
localStorage.clear();
if (window.history && window.history.replaceState && window.history.replaceState("object or string", "Title", window.location.pathname))
location.reload();
}
const feed = search.get('feed');
if (feed != null) {
uuid = feed;