Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/scala/org/scalajs/dom/raw/lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,16 @@ trait ServiceWorkerContainer extends EventTarget {
* MDN
*/
def getRegistration(scope: String = ""): Promise[ServiceWorkerRegistration] = js.native

/**
* The ready read-only property of the ServiceWorkerContainer interface defines
* whether a service worker is ready to control a page or not. It returns a
* Promise that will never reject, which resolves to a ServiceWorkerRegistration
* with an ServiceWorkerRegistration.active worker.
*
* MDN
*/
def ready: Promise[ServiceWorkerRegistration] = js.native
}

/**
Expand Down