ELECTRON-274: fix as per pr comments

This commit is contained in:
Vishwas Shashidhar
2018-02-23 17:15:31 +05:30
parent f0222b0101
commit de8d062f8c

View File

@@ -323,7 +323,7 @@ function doCreateMainWindow(initialUrl, initialBounds) {
// only allow window.open to succeed is if coming from same hsot,
// otherwise open in default browser.
if (((newWinHost === mainWinHost) || newWinUrl === emptyUrlString) && dispositionWhitelist.includes(disposition)) {
if ((newWinHost === mainWinHost || newWinUrl === emptyUrlString) && dispositionWhitelist.includes(disposition)) {
// handle: window.open
if (!frameName) {