Browse Source
Add cachebuster to app icons in the admin screen
pull/934/head
Lukas Reschke
9 years ago
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with
2 additions and
2 deletions
-
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; |
|
|
|
}, |
|
|
|
|