2018-12-13 21:25:12 +00:00
|
|
|
/* global nodeProcess, isolatedWorld */
|
2018-09-22 12:28:50 +00:00
|
|
|
|
2020-06-23 03:32:45 +00:00
|
|
|
process._linkedBinding = nodeProcess._linkedBinding;
|
2017-01-12 00:36:59 +00:00
|
|
|
|
2020-06-23 03:32:45 +00:00
|
|
|
const v8Util = process._linkedBinding('electron_common_v8_util');
|
2019-03-30 01:10:21 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const webViewImpl = v8Util.getHiddenValue(isolatedWorld, 'web-view-impl');
|
2019-01-12 01:00:43 +00:00
|
|
|
|
|
|
|
if (webViewImpl) {
|
|
|
|
// Must setup the WebView element in main world.
|
2020-03-20 20:28:31 +00:00
|
|
|
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element');
|
|
|
|
setupWebView(v8Util, webViewImpl);
|
2019-01-12 01:00:43 +00:00
|
|
|
}
|