electron/docs/api/structures/preload-script-registration.md
Sam Maddock a07de0099c
feat: service worker preload scripts for improved extensions support … (#45408)
feat: service worker preload scripts for improved extensions support (#44411)

* feat: preload scripts for service workers

* feat: service worker IPC

* test: service worker preload scripts and ipc
2025-02-05 14:18:24 -05:00

321 B

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.