Add random string to icon to invalidate it

This commit is contained in:
Girish Ramakrishnan
2019-05-21 00:06:33 -07:00
parent 96117216ee
commit f0093c5e4f
+1 -1
View File
@@ -1396,7 +1396,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
};
Client.prototype._appPostProcess = function (app) { // calculate the icon paths
app.iconUrl = app.iconUrl ? (this.apiOrigin + app.iconUrl + '?access_token=' + token) : null;
app.iconUrl = app.iconUrl ? (this.apiOrigin + app.iconUrl + '?access_token=' + token + '&' + String(Math.random()).slice(2)) : null;
// FIXME have a real message structure, not some string to randomly parse
// extract progress percentage