Header menu logo fable-electron-docs-api

PreloadScriptRegistration Type

Constructors

Constructor Description

PreloadScriptRegistration(type, filePath, ?id)

Full Usage: PreloadScriptRegistration(type, filePath, ?id)

Parameters:
    type : Type - Context type where the preload script will be executed. Possible values include frame or service-worker.
    filePath : string - Path of the script file. Must be an absolute path.
    ?id : string - Unique ID of preload script. Defaults to a random UUID.

Returns: PreloadScriptRegistration
type : Type

Context type where the preload script will be executed. Possible values include frame or service-worker.

filePath : string

Path of the script file. Must be an absolute path.

?id : string

Unique ID of preload script. Defaults to a random UUID.

Returns: PreloadScriptRegistration

Instance members

Instance member Description

this.filePath

Full Usage: this.filePath

Path of the script file. Must be an absolute path.

this.id

Full Usage: this.id

Unique ID of preload script. Defaults to a random UUID.

this.type

Full Usage: this.type

Context type where the preload script will be executed. Possible values include frame or service-worker.

Type something to start searching.