ServiceWorker Domain
Methods
enable#
disable#
Events
Types
ServiceWorkerRegistration#
ServiceWorker registration.
Type: object
Properties
- registrationId
- string
- scopeURL
- string
- isDeleted
- boolean
ServiceWorkerVersionRunningStatus#
Type: string
Allowed values
stopped, starting, running, stopping.
ServiceWorkerVersionStatus#
Type: string
Allowed values
new, installing, installed, activating, activated, redundant.
TargetID#
Type: string
ServiceWorkerVersion#
ServiceWorker version.
Type: object
Properties
- versionId
- string
- registrationId
- string
- scriptURL
- string
- runningStatus
- ServiceWorkerVersionRunningStatus
- status
- ServiceWorkerVersionStatus
- scriptLastModified
- number The Last-Modified header value of the main script.
- scriptResponseTime
- number The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.
- controlledClients
- array [ TargetID ]
ServiceWorkerErrorMessage#
ServiceWorker error message.
Type: object
Properties
- errorMessage
- string
- registrationId
- string
- versionId
- string
- sourceURL
- string
- lineNumber
- integer
- columnNumber
- integer