diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-18 12:44:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-18 12:44:33 +0200 |
commit | 5581a602cc3eceeb2efd647a3772be0537e58f66 (patch) | |
tree | e841d8a5aa364090648cf9431589020bb7565740 | |
parent | 1f5b2977227addfe4c589e04afe6016df229ee78 (diff) | |
download | nextcloud-server-5581a602cc3eceeb2efd647a3772be0537e58f66.tar.gz nextcloud-server-5581a602cc3eceeb2efd647a3772be0537e58f66.zip |
Add cachebuster to app icons in the admin screen
-rw-r--r-- | settings/js/apps.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index ac259dd7989..985b117feff 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -236,10 +236,10 @@ OC.Settings.Apps = OC.Settings.Apps || { var img = '<svg width="72" height="72" viewBox="0 0 72 72">'; if (appfromstore) { - img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>'; + img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon" /></svg>'; } else { img += '<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>'; - img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '" class="app-icon"></image></svg>'; + img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon"></image></svg>'; } return img; }, |