ServiceWorker

Overview

The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.

Location

Properties


onstatechange

 

property onstatechange: EventListener read write;

 

EventListener onstatechange { get; set; }

 

var onstatechange: EventListener { get{} set{} }

 

EventListener onstatechange { __get; __set; }

 

Property onstatechange() As EventListener

scriptURL

 

property scriptURL: String read;

 

String scriptURL { get; }

 

var scriptURL: String { get{} }

 

String scriptURL { __get; }

 

ReadOnly Property scriptURL() As String

state

 

property state: ServiceWorkerState read;

 

ServiceWorkerState state { get; }

 

var state: ServiceWorkerState { get{} }

 

ServiceWorkerState state { __get; }

 

ReadOnly Property state() As ServiceWorkerState