Add session.defaultSession and remove app.defaultSession
The latter has never been a public API, no need to keep it.
This commit is contained in:
parent
47d7d49d19
commit
1392873cbc
5 changed files with 15 additions and 26 deletions
|
@ -1,10 +1,12 @@
|
|||
{app, ipcMain, deprecate} = require 'electron'
|
||||
{ipcMain, deprecate} = require 'electron'
|
||||
{EventEmitter} = require 'events'
|
||||
|
||||
{BrowserWindow} = process.atomBinding 'window'
|
||||
BrowserWindow::__proto__ = EventEmitter.prototype
|
||||
|
||||
BrowserWindow::_init = ->
|
||||
{app} = require 'electron' # avoid recursive require.
|
||||
|
||||
# Simulate the application menu on platforms other than OS X.
|
||||
if process.platform isnt 'darwin'
|
||||
menu = app.getApplicationMenu()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue