mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Fix unexpected "false" texts
This commit is contained in:
parent
7db004ede3
commit
a268e49280
@ -50,7 +50,7 @@ function createElement<T=HTMLElement>(elmName: string, props: {[index: string]:
|
||||
|
||||
if (arg instanceof Node) {
|
||||
$elm.appendChild(arg);
|
||||
} else if (arg !== null && typeof arg !== 'undefined') {
|
||||
} else if (arg !== null && arg !== false && typeof arg !== 'undefined') {
|
||||
$elm.appendChild(document.createTextNode(arg));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user