Use empty string for comparison

This commit is contained in:
Kevin Sawicki 2017-01-11 17:07:05 -08:00
parent 2e6d08c652
commit f3852c57fc

View file

@ -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)