Correctly handle webview bool attributes (fix #99)

This commit is contained in:
Thomas Brouard 2020-02-28 10:21:33 +01:00
parent 05b8d9b689
commit b866d47157

View file

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