Example
Example copied to clipboard
Fix worker code, add version updates
Refs: #85
- Fix existing errors related to service worker
- Add content version updates
- Refactor service worker code
Fixed errors:
worker.js:15 Uncaught (in promise) DOMException: Failed to execute 'waitUntil' on 'ExtendableEvent': The event handler is already finished and no extend lifetime promises are outstanding. at http://localhost:8001/worker.js:15:9 (closes #85)
Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Request scheme 'chrome-extension' is unsupported at worker.js:23 (escaleted if user has requests to extensions)