Note: This feature is only available in Service Workers.
The SyncEvent() constructor creates a new SyncEvent object.
new SyncEvent(type, options)typeA string with the name of the event. It is case-sensitive and browsers always set it to sync.
optionsAn object that, in addition to the properties defined in ExtendableEvent(), can have the following properties:
tagA developer-defined unique identifier for this SyncEvent.
lastChance OptionalA boolean value indicating that the user agent will not make further synchronization attempts after the current attempt. It defaults to false.
A new SyncEvent object.