preload
A string
that specifies a script that will be loaded before other scripts run in the guest page. The protocol of script's URL must be file:
(even when using asar:
archives) because it will be loaded by Node's require
under the hood, which treats asar:
archives as virtual directories.
When the guest page doesn't have node integration this script will still have access to all Node APIs, but global objects injected by Node will be deleted after this script has finished executing.