Use empty string for comparison
This commit is contained in:
parent
2e6d08c652
commit
f3852c57fc
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module.exports = (ipcRenderer, guestInstanceId, openerId, hiddenPage) => {
|
|||
|
||||
// Make the browser window or guest view emit "new-window" event.
|
||||
window.open = function (url, frameName, features) {
|
||||
if (url != null && url.length > 0) {
|
||||
if (url != null && url !== '') {
|
||||
url = resolveURL(url)
|
||||
}
|
||||
const guestId = ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', url, frameName, features)
|
||||
|
|
Loading…
Reference in a new issue