You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The Promise.race(iterable) method returns a promise that resolves or rejects as soon as one of the promises in the iterable resolves or rejects, with the value or reason from that promise.
* The installing property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installing.
565
+
* This property is initially set to null.
566
+
*
567
+
* MDN
568
+
*/
569
+
varinstalling:ServiceWorker= js.native
570
+
571
+
/**
572
+
* The waiting property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installed.
573
+
* This property is initially set to null.
574
+
*
575
+
* MDN
576
+
*/
577
+
varwaiting:ServiceWorker= js.native
578
+
579
+
/**
580
+
* The active property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated.
581
+
* This property is initially set to null.
582
+
*
583
+
* MDN
584
+
*/
585
+
varactive:ServiceWorker= js.native
586
+
587
+
/**
588
+
* The scope read-only property of the ServiceWorkerRegistration interface returns a unique identifier for a service worker registration.
589
+
* The service worker must be on the same origin as the document that registers the ServiceWorker.
590
+
*
591
+
* MDN
592
+
*/
593
+
varscope:String= js.native
594
+
595
+
/**
596
+
* The update method of the ServiceWorkerRegistration interface allows you to ping the server for an updated service worker script.
597
+
* If you don't explicitly call this,
598
+
* the UA will do this automatically once every 24 hours.
599
+
*
600
+
* MDN
601
+
*/
602
+
defupdate():Unit= js.native
603
+
604
+
/**
605
+
* The unregister method of the ServiceWorkerRegistration interface unregisters the service worker registration and returns a Promise.
606
+
* The promise will resolve to false if no registration was found, otherwise it resolves to true irrespective of whether unregistration happened or not (it may not unregister if someone else just called ServiceWorkerContainer.register with the same scope.)
607
+
* The service worker will finish any ongoing operations before it is unregistered.
608
+
*
609
+
* MDN
610
+
*/
611
+
defunregister():Promise[Boolean] = js.native
612
+
613
+
/**
614
+
* The onupdatefound property of the ServiceWorkerRegistration interface is an EventListener property called whenever an event of type statechange is fired;
615
+
* it is fired any time the ServiceWorkerRegistration.
616
+
* installing property acquires a new service worker.
* The ServiceWorkerContainer.controller read-only property of the ServiceWorkerContainer interface returns the ServiceWorker whose state is activated (the same object returned by ServiceWorkerRegistration.active).
645
+
* This property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker.
646
+
*
647
+
* MDN
648
+
*/
649
+
defcontroller:ServiceWorker= js.native
650
+
651
+
/**
652
+
* Gets a ServiceWorkerRegistration object whose scope URL matches the document URL.
653
+
* If the method can't return a ServiceWorkerRegistration, it returns a Promise.
0 commit comments