diff --git a/lib/browser/guest-view-manager.js b/lib/browser/guest-view-manager.js index e36e66855689..556441f6332d 100644 --- a/lib/browser/guest-view-manager.js +++ b/lib/browser/guest-view-manager.js @@ -109,7 +109,7 @@ const createGuest = function (embedder, params) { const sendToEmbedder = (channel, ...args) => { const embedder = getEmbedder(guestInstanceId) - if (embedder) { + if (embedder != null) { embedder.send(`${channel}-${guest.viewInstanceId}`, ...args) } } diff --git a/spec/webview-spec.js b/spec/webview-spec.js index 4fb9694b1b31..e00bc222549a 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -1285,7 +1285,7 @@ describe(' tag', function () { done() }) - webview.src = 'file://' + fixtures + '/pages/a.html' + webview.src = `file://${fixtures}/pages/a.html` div.appendChild(webview) document.body.appendChild(div) })