diff --git a/lib/renderer/security-warnings.ts b/lib/renderer/security-warnings.ts index 30cb0cc63b6d..0aadfb632d19 100644 --- a/lib/renderer/security-warnings.ts +++ b/lib/renderer/security-warnings.ts @@ -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;