From 9309eb58f7684018abd8a613649e2820d8ce8247 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 16 Oct 2020 23:49:03 +0200 Subject: [PATCH] add /?reset to reset all settings --- html/early.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/early.js b/html/early.js index 0bb25af..f66174e 100644 --- a/html/early.js +++ b/html/early.js @@ -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;