mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
* feat: preload scripts for service workers * feat: service worker IPC * test: service worker preload scripts and ipc
7 lines
321 B
Markdown
7 lines
321 B
Markdown
# PreloadScriptRegistration Object
|
|
|
|
* `type` string - Context type where the preload script will be executed.
|
|
Possible values include `frame` or `service-worker`.
|
|
* `id` string (optional) - Unique ID of preload script. Defaults to a random UUID.
|
|
* `filePath` string - Path of the script file. Must be an absolute path.
|