Header menu logo fable-electron-docs-api

ServiceWorkerInfo Type

Constructors

Constructor Description

ServiceWorkerInfo(scriptUrl, scope, renderProcessId, versionId)

Full Usage: ServiceWorkerInfo(scriptUrl, scope, renderProcessId, versionId)

Parameters:
    scriptUrl : string - The full URL to the script that this service worker runs
    scope : string - The base URL that this service worker is active for.
    renderProcessId : float - The virtual ID of the process that this service worker is running in. This is not an OS level PID. This aligns with the ID set used for webContents.getProcessId().
    versionId : float - ID of the service worker version

Returns: ServiceWorkerInfo
scriptUrl : string

The full URL to the script that this service worker runs

scope : string

The base URL that this service worker is active for.

renderProcessId : float

The virtual ID of the process that this service worker is running in. This is not an OS level PID. This aligns with the ID set used for webContents.getProcessId().

versionId : float

ID of the service worker version

Returns: ServiceWorkerInfo

Instance members

Instance member Description

this.renderProcessId

Full Usage: this.renderProcessId

The virtual ID of the process that this service worker is running in. This is not an OS level PID. This aligns with the ID set used for webContents.getProcessId().

this.scope

Full Usage: this.scope

The base URL that this service worker is active for.

this.scriptUrl

Full Usage: this.scriptUrl

The full URL to the script that this service worker runs

this.versionId

Full Usage: this.versionId

ID of the service worker version

Type something to start searching.