Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luke Bjerring
committed
Mar 2, 2018
1 parent
26cd868
commit 8d14ed0
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
partial interface ServiceWorkerRegistration { | ||
readonly attribute SyncManager sync; | ||
}; | ||
|
||
[Exposed=(Window,Worker)] | ||
interface SyncManager { | ||
Promise<void> register(DOMString tag); | ||
Promise<sequence<DOMString>> getTags(); | ||
}; | ||
|
||
partial interface ServiceWorkerGlobalScope { | ||
attribute EventHandler onsync; | ||
}; | ||
|
||
[Constructor(DOMString type, SyncEventInit init), Exposed=ServiceWorker] | ||
interface SyncEvent : ExtendableEvent { | ||
readonly attribute DOMString tag; | ||
readonly attribute boolean lastChance; | ||
}; | ||
|
||
dictionary SyncEventInit : ExtendableEventInit { | ||
required DOMString tag; | ||
boolean lastChance = false; | ||
}; |