Skip to content

Commit

Permalink
refactor: load webFrame via process._linkedBinding in security-warnin…
Browse files Browse the repository at this point in the history
…gs.ts (#34746)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Jun 27, 2022
1 parent 5a0f75f commit d71c08a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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;
Expand Down

0 comments on commit d71c08a

Please sign in to comment.