From b866d471570e1df247b76383fdc35940ac036da0 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Fri, 28 Feb 2020 10:21:33 +0100 Subject: [PATCH] Correctly handle webview bool attributes (fix #99) --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2bb40a8..13c2df8 100644 --- a/index.js +++ b/index.js @@ -413,7 +413,9 @@ const TabPrivate = { if (this.webviewAttributes) { let attrs = this.webviewAttributes; for (let key in attrs) { - this.webview.setAttribute(key, attrs[key]); + const attr = attrs[key]; + if (attr === false) continue; + this.webview.setAttribute(key, attr); } }