image: cache option inverted (#521)

This commit is contained in:
jean-emmanuel 2019-04-22 09:44:11 +02:00
parent 3e2d66e165
commit af34f87ac8
2 changed files with 6 additions and 1 deletions

View file

@ -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()
}