Explicitly initialize session before webContents
This commit is contained in:
parent
523e8c2e1c
commit
5bb8da6073
2 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
|||
'use strict'
|
||||
|
||||
const {EventEmitter} = require('events')
|
||||
const {ipcMain, Menu, NavigationController} = require('electron')
|
||||
const {ipcMain, session, Menu, NavigationController} = require('electron')
|
||||
|
||||
// session is not used here, the purpose is to make sure session is initalized
|
||||
// before the webContents module.
|
||||
session
|
||||
|
||||
const binding = process.atomBinding('web_contents')
|
||||
const debuggerBinding = process.atomBinding('debugger')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue