ServiceWorkerRegistrationOptions

@JSType

An object containing registration options.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

@ExposedJSMember @JSOptional
var `type`: UndefOr[WorkerType]

A string specifying the type of worker to create.

A string specifying the type of worker to create.

@ExposedJSMember @JSOptional
var scope: UndefOr[String]

A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a service worker can control. This is usually a relative URL. It is relative to the base URL of the application. By default, the scope value for a service worker registration is set to the directory where the service worker script is located.

A string representing a URL that defines a service worker's registration scope; that is, what range of URLs a service worker can control. This is usually a relative URL. It is relative to the base URL of the application. By default, the scope value for a service worker registration is set to the directory where the service worker script is located.

@ExposedJSMember @JSOptional

A string indicating how much of a service worker's resources will be updated when a call is made to ServiceWorkerRegistration.updateViaCache.

A string indicating how much of a service worker's resources will be updated when a call is made to ServiceWorkerRegistration.updateViaCache.