mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 20:26:03 +08:00
Add "preload" option for BrowserWindow
This commit is contained in:
@@ -31,7 +31,7 @@ for arg in process.argv
|
||||
require('web-frame').setName 'ATOM_SHELL_GUEST_WEB_VIEW'
|
||||
else if arg.indexOf('--node-integration=') == 0
|
||||
nodeIntegration = arg.substr arg.indexOf('=') + 1
|
||||
else if arg.indexOf('--preload-script=') == 0
|
||||
else if arg.indexOf('--preload=') == 0
|
||||
preloadScript = arg.substr arg.indexOf('=') + 1
|
||||
|
||||
if location.protocol is 'chrome-devtools:'
|
||||
|
||||
Reference in New Issue
Block a user