From dcd2233aa6ceabe00b06b4fe342b14bf211e9f4a Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 17 May 2020 15:07:56 +0200 Subject: popravljen dist, hvala rstular --- dist/js/logout.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dist/js/logout.js (limited to 'dist/js/logout.js') diff --git a/dist/js/logout.js b/dist/js/logout.js new file mode 100644 index 0000000..f9c2543 --- /dev/null +++ b/dist/js/logout.js @@ -0,0 +1,5 @@ +// navigator.serviceWorker.controller.postMessage(JSON.stringify({action: "deletecaches"})); // cache only sets on initialization, so it should not be deleted. +// since sw.js is not cached, updates work. +localforage.clear().then(() => { // deletes localforage + window.location.replace("/index.html"); +}); -- cgit v1.2.3