mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Initialize session explicitly
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
'use strict'
|
||||
|
||||
const electron = require('electron')
|
||||
const {Menu} = electron
|
||||
const {Menu} = require('electron')
|
||||
const EventEmitter = require('events').EventEmitter
|
||||
|
||||
// Initialize session
|
||||
require('electron').session
|
||||
|
||||
const bindings = process.atomBinding('app')
|
||||
const downloadItemBindings = process.atomBinding('download_item')
|
||||
const app = bindings.app
|
||||
|
||||
Reference in New Issue
Block a user