electron/docs/api/structures/preload-script.md

271 B

PreloadScript Object

  • type string - 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.