Initialize session explicitly
This commit is contained in:
parent
814ae7b4a4
commit
30b60516fe
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const electron = require('electron')
|
const {Menu} = require('electron')
|
||||||
const {Menu} = electron
|
|
||||||
const EventEmitter = require('events').EventEmitter
|
const EventEmitter = require('events').EventEmitter
|
||||||
|
|
||||||
|
// Initialize session
|
||||||
|
require('electron').session
|
||||||
|
|
||||||
const bindings = process.atomBinding('app')
|
const bindings = process.atomBinding('app')
|
||||||
const downloadItemBindings = process.atomBinding('download_item')
|
const downloadItemBindings = process.atomBinding('download_item')
|
||||||
const app = bindings.app
|
const app = bindings.app
|
||||||
|
|
Loading…
Reference in a new issue