mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Correctly handle webview bool attributes (fix #99)
This commit is contained in:
parent
05b8d9b689
commit
b866d47157
4
index.js
4
index.js
|
@ -413,7 +413,9 @@ const TabPrivate = {
|
||||||
if (this.webviewAttributes) {
|
if (this.webviewAttributes) {
|
||||||
let attrs = this.webviewAttributes;
|
let attrs = this.webviewAttributes;
|
||||||
for (let key in attrs) {
|
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