diff options
author | Sebastian <sebasjm@gmail.com> | 2023-06-01 12:22:04 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-06-01 12:24:06 -0300 |
commit | 67fe4e8c20dd810aa6bf124c457bf8161ce56589 (patch) | |
tree | aa33b12a1c2d67447876de7849e98125600f7701 /packages/taler-wallet-webextension/src/spa/service_worker.js | |
parent | b4966b33f4e806a4009c9a208b82e8f8d1ab14dc (diff) | |
download | wallet-core-67fe4e8c20dd810aa6bf124c457bf8161ce56589.tar.xz |
move folder to catch up the reload on save
Diffstat (limited to 'packages/taler-wallet-webextension/src/spa/service_worker.js')
-rw-r--r-- | packages/taler-wallet-webextension/src/spa/service_worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/spa/service_worker.js b/packages/taler-wallet-webextension/src/spa/service_worker.js new file mode 100644 index 000000000..38064e245 --- /dev/null +++ b/packages/taler-wallet-webextension/src/spa/service_worker.js @@ -0,0 +1,11 @@ +/* eslint-disable no-undef */ +/** + * Wrapper to catch any initialization error and show it in the logs + */ +try { + importScripts("dist/background.js"); + self.skipWaiting(); + console.log("SERVICE WORKER init: ok"); +} catch (e) { + console.error("SERVICE WORKER failed:", e); +} |