refactor: load webFrame via process._linkedBinding in security-warnings.ts (#34735)

This commit is contained in:
Milan Burda 2022-06-27 10:28:35 +02:00 committed by GitHub
parent c5b87e4919
commit ba4893c248
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
import { webFrame } from 'electron';
import { ipcRendererInternal } from '@electron/internal/renderer/ipc-renderer-internal'; import { ipcRendererInternal } from '@electron/internal/renderer/ipc-renderer-internal';
import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages'; import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages';
const { mainFrame: webFrame } = process._linkedBinding('electron_renderer_web_frame');
let shouldLog: boolean | null = null; let shouldLog: boolean | null = null;
const { platform, execPath, env } = process; const { platform, execPath, env } = process;