diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 211dc2f88..0a3154ad8 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -95,10 +95,6 @@ // Clear cache (serive worker) try { navigator.serviceWorker.controller.postMessage('clear'); - - navigator.serviceWorker.getRegistrations().then(registrations => { - registrations.forEach(registration => registration.unregister()); - }); } catch (e) { console.error(e); } diff --git a/src/web/app/common/scripts/check-for-update.ts b/src/web/app/common/scripts/check-for-update.ts index 0b58c0a67..154092451 100644 --- a/src/web/app/common/scripts/check-for-update.ts +++ b/src/web/app/common/scripts/check-for-update.ts @@ -11,10 +11,6 @@ export default async function(mios: MiOS) { // Clear cache (serive worker) try { navigator.serviceWorker.controller.postMessage('clear'); - - navigator.serviceWorker.getRegistrations().then(registrations => { - registrations.forEach(registration => registration.unregister()); - }); } catch (e) { console.error(e); } diff --git a/src/web/assets/404.js b/src/web/assets/404.js index 285704d11..46fd004f1 100644 --- a/src/web/assets/404.js +++ b/src/web/assets/404.js @@ -5,10 +5,6 @@ if (yn) { // Clear cache (serive worker) try { navigator.serviceWorker.controller.postMessage('clear'); - - navigator.serviceWorker.getRegistrations().then(registrations => { - registrations.forEach(registration => registration.unregister()); - }); } catch (e) { console.error(e); } diff --git a/src/web/assets/recover.html b/src/web/assets/recover.html new file mode 100644 index 000000000..019f57b2e --- /dev/null +++ b/src/web/assets/recover.html @@ -0,0 +1,34 @@ + + + +
+ +