refactor: Port renderer/web-view to TypeScript (#17250)
This commit is contained in:
parent
8c6bf9c848
commit
f3fc4023cf
13 changed files with 441 additions and 301 deletions
|
@ -93,7 +93,8 @@ switch (window.location.protocol) {
|
|||
|
||||
// Load webview tag implementation.
|
||||
if (process.isMainFrame) {
|
||||
require('@electron/internal/renderer/web-view/web-view-init')(contextIsolation, webviewTag, guestInstanceId)
|
||||
const { webViewInit } = require('@electron/internal/renderer/web-view/web-view-init')
|
||||
webViewInit(contextIsolation, webviewTag, guestInstanceId)
|
||||
}
|
||||
|
||||
// Pass the arguments to isolatedWorld.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue