mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Deprecate app.resolveProxy
There is now a public API to get default session, this helper is no longer necessary.
This commit is contained in:
@@ -34,10 +34,6 @@ app.setAppPath = (path) ->
|
||||
app.getAppPath = ->
|
||||
appPath
|
||||
|
||||
# Helpers.
|
||||
app.resolveProxy = (url, callback) ->
|
||||
session.defaultSession.resolveProxy url, callback
|
||||
|
||||
# Routes the events to webContents.
|
||||
for name in ['login', 'certificate-error', 'select-client-certificate']
|
||||
do (name) ->
|
||||
@@ -51,6 +47,8 @@ app.getDataPath = deprecate 'app.getDataPath', 'app.getPath', ->
|
||||
@getPath 'userData'
|
||||
app.setDataPath = deprecate 'app.setDataPath', 'app.setPath', (path) ->
|
||||
@setPath 'userData', path
|
||||
app.resolveProxy = deprecate 'app.resolveProxy', 'session.defaultSession.resolveProxy', (url, callback) ->
|
||||
session.defaultSession.resolveProxy url, callback
|
||||
deprecate.rename app, 'terminate', 'quit'
|
||||
deprecate.event app, 'finish-launching', 'ready', ->
|
||||
setImmediate => # give default app a chance to setup default menu.
|
||||
|
||||
Reference in New Issue
Block a user