Correctly handle webview bool attributes (fix #99)
This commit is contained in:
parent
05b8d9b689
commit
b866d47157
1 changed files with 3 additions and 1 deletions
4
index.js
4
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue