yyx990803 / register-service-worker

A script to simplify service worker registration with hooks for common events.
MIT License
638 stars 58 forks source link

Should we add options in register API #16

Closed xiaoiver closed 5 years ago

xiaoiver commented 5 years ago

If we want to register a SW to a scope, options are required.

ServiceWorkerContainer.register(scriptURL, options)

ServiceWorkerContainer.register()

ulivz commented 5 years ago

See: #17