mirror of
https://github.com/electron/electron.git
synced 2026-02-12 16:15:06 -05:00
Use empty string for comparison
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user