refactor: load webFrame via process._linkedBinding in security-warnings.ts (#34735)
This commit is contained in:
parent
c5b87e4919
commit
ba4893c248
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
import { webFrame } from 'electron';
|
||||
import { ipcRendererInternal } from '@electron/internal/renderer/ipc-renderer-internal';
|
||||
import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages';
|
||||
|
||||
const { mainFrame: webFrame } = process._linkedBinding('electron_renderer_web_frame');
|
||||
|
||||
let shouldLog: boolean | null = null;
|
||||
|
||||
const { platform, execPath, env } = process;
|
||||
|
|
Loading…
Reference in a new issue