image: value type check to prevent error
This commit is contained in:
parent
c536a6cc6a
commit
be36306887
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ module.exports = class Led extends Widget {
|
|||
|
||||
}
|
||||
|
||||
if (this.value.length) {
|
||||
if (typeof this.value === 'string' && this.value.length) {
|
||||
|
||||
cache_query = this.getProp('cache') || this.value.indexOf('base64') != -1 ?
|
||||
'' : (this.value.indexOf('?') != -1 ? '&' : '?') + Date.now()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue