Skip to content

Commit

Permalink
fix jQuery global window namespace registration
Browse files Browse the repository at this point in the history
loginWindow is spawned with nodeIntegration set to True. Since
loginWindow will always be reaching out to external servers, we
can set nodeIntegration to False to prevent the 'module' global
namespace variable from being set.

electron/electron#254
  • Loading branch information
Senney authored and Sean Heintz committed Jun 9, 2016
1 parent c7da998 commit 8057796
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.coffee
Expand Up @@ -128,6 +128,9 @@ app.on 'ready', ->
"min-height": 420
icon: path.join __dirname, 'icons', 'icon.png'
show: true
webPreferences: {
nodeIntegration: false
}
}
mainWindow.hide()
loginWindow.focus()
Expand Down

0 comments on commit 8057796

Please sign in to comment.