Skip to content

Session.setPreloads method

Session › setPreloads

Unofficial

Adds scripts that will be executed on all web contents associated with this session just before normal preload scripts run.

Signature:

setPreloads(preloads: string[]): void

Parameters:

Parameter Type Description
preloads string[] The paths to the preload scripts.

Returns: void