image: cache option inverted (#521)
This commit is contained in:
parent
cb140a234f
commit
c994e95b9f
2 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.45.7
|
||||
|
||||
- bug fixes
|
||||
- image: `cache` option inverted
|
||||
|
||||
## 0.45.6
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ module.exports = class Image extends Widget {
|
|||
|
||||
if (typeof this.value === 'string' && this.value.length) {
|
||||
|
||||
if ((s === 'reload' || this.getProp('cache')) && this.value.indexOf('base64') === -1) {
|
||||
if ((s === 'reload' || !this.getProp('cache')) && this.value.indexOf('base64') === -1) {
|
||||
cache_query = (this.value.indexOf('?') != -1 ? '&' : '?') + Date.now()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue