unregistermethod of the
ServiceWorkerRegistrationinterface unregisters the service worker registration and returns a
Promise. The promise will resolve to
falseif no registration was found, otherwise it resolves to
trueirrespective of whether unregistration happened or not (it may not unregister if someone else just called
ServiceWorkerContainer.registerwith the same scope.) The service worker will finish any ongoing operations before it is unregistered.
isReloadread-only property of the
trueif the event was dispatched by the user attempting to reload the page, and
falseotherwise. Pressing the refresh button is a reload while clicking a link and pressing the back button is not.