![]() You cannot get around this by loading your extension from a server. To update the service worker, publish a new version of your extension to the Chrome Web Store. ![]() importScripts ( 'locales.js' ) # Updating Use importScripts() as you would in a web service worker. Service workers in web pages or web apps register service workers by first feature-detecting for serviceWorker in navigator then calling register() inside feature detection. Use the "service_worker" key, which specifies a single JavaScript file. To register an extension service worker, specify it in the "background" field of the manifest.json file. ![]() Extension service workers are installed and updated differently from web service workers. ![]()
0 Comments
Leave a Reply. |