We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1b9db commit 6920bdcCopy full SHA for 6920bdc
src/main/index.ts
@@ -104,10 +104,7 @@ function loadReactDevTools(): void {
104
}
105
106
function patchPermissionHandler(): void {
107
- // TODO: import different things from electron not just default
108
- const {
109
- session: { defaultSession },
110
- } = electron;
+ const { defaultSession } = session;
111
const originalSetHandler = defaultSession.setPermissionRequestHandler.bind(defaultSession);
112
defaultSession.setPermissionRequestHandler = (cb) => {
113
originalSetHandler((webContents, permission, callback, details) => {
0 commit comments