refactor: Port renderer/web-view to TypeScript (#17250)

This commit is contained in:
Felix Rieseberg 2019-03-07 15:26:23 -08:00 committed by Samuel Attard
parent 8c6bf9c848
commit f3fc4023cf
13 changed files with 441 additions and 301 deletions

View file

@ -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.