build: tsify isolated_renderer/init (#24496)

This commit is contained in:
Samuel Attard 2020-07-09 20:32:26 -07:00 committed by GitHub
parent c9aa68e32c
commit 8847517798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,15 @@
'use strict';
/* global nodeProcess, isolatedWorld */
process._linkedBinding = nodeProcess._linkedBinding;
const v8Util = process._linkedBinding('electron_common_v8_util');
const webViewImpl = v8Util.getHiddenValue(isolatedWorld, 'web-view-impl');
if (webViewImpl) {
// Must setup the WebView element in main world.
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element');
setupWebView(v8Util, webViewImpl);
}