mirror of
https://github.com/Lissy93/dashy.git
synced 2026-06-06 00:34:30 -04:00
🐛 Fixes image widget update cache (#2151)
This commit is contained in:
@@ -40,7 +40,9 @@ export default {
|
||||
},
|
||||
/* Generate a URL param, to be updated in order to re-fetch image */
|
||||
updatePathParam() {
|
||||
return this.updateCount ? `#dashy-update-${this.updateCount}` : '';
|
||||
if (!this.updateCount || !this.options.imagePath) return '';
|
||||
const separator = this.options.imagePath.includes('?') ? '&' : '?';
|
||||
return `${separator}dashy-update=${this.updateCount}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user