Load the "preload" script in <webview>
This commit is contained in:
parent
8d8bfcd120
commit
217b1afe87
8 changed files with 24 additions and 3 deletions
|
@ -33,7 +33,8 @@ createGuest = (embedder, params) ->
|
|||
guestInstanceId: id
|
||||
storagePartitionId: params.storagePartitionId
|
||||
guestInstances[id] = {guest, embedder}
|
||||
webViewManager.addGuest id, embedder, guest, params.nodeIntegration, params.plugins
|
||||
preload = params.preload ? ''
|
||||
webViewManager.addGuest id, embedder, guest, params.nodeIntegration, params.plugins, preload
|
||||
|
||||
# Destroy guest when the embedder is gone.
|
||||
embedder.once 'render-view-deleted', ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue