mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-274: fix as per pr comments
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user