mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Do truthy check in if block
This commit is contained in:
@@ -66,10 +66,10 @@ class BooleanAttribute extends WebViewAttribute {
|
||||
}
|
||||
|
||||
setValue (value) {
|
||||
if (!value) {
|
||||
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
||||
} else {
|
||||
if (value) {
|
||||
this.webViewImpl.webviewNode.setAttribute(this.name, '')
|
||||
} else {
|
||||
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user