Skip to content

Commit

Permalink
update webContents.session.setProxy to promisified
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Aug 2, 2019
1 parent 5f178b0 commit 727df3a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/server/lib/gui/windows.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ setWindowProxy = (win) ->
if not process.env.HTTP_PROXY
return

return new Promise (resolve) ->
win.webContents.session.setProxy({
proxyRules: process.env.HTTP_PROXY
proxyBypassRules: process.env.NO_PROXY
}, resolve)
win.webContents.session.setProxy({
proxyRules: process.env.HTTP_PROXY
proxyBypassRules: process.env.NO_PROXY
})

module.exports = {
reset: ->
Expand Down

0 comments on commit 727df3a

Please sign in to comment.