Header menu logo fable-electron-docs-api

PreloadScript Type

Constructors

Constructor Description

PreloadScript(type, id, filePath)

Full Usage: PreloadScript(type, id, filePath)

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

Returns: PreloadScript
type : Type

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

id : string

Unique ID of preload script.

filePath : string

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

Returns: PreloadScript

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.

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.