Skip to content

Commit 6920bdc

Browse files
committed
chore: todo
1 parent 1d1b9db commit 6920bdc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ function loadReactDevTools(): void {
104104
}
105105

106106
function patchPermissionHandler(): void {
107-
// TODO: import different things from electron not just default
108-
const {
109-
session: { defaultSession },
110-
} = electron;
107+
const { defaultSession } = session;
111108
const originalSetHandler = defaultSession.setPermissionRequestHandler.bind(defaultSession);
112109
defaultSession.setPermissionRequestHandler = (cb) => {
113110
originalSetHandler((webContents, permission, callback, details) => {

0 commit comments

Comments
 (0)