Skip to content

Commit df5a1e2

Browse files
authored
Merge pull request #939 from nextcloud/stable10-backport-937
[stable10] SVG defintions always take the first one
2 parents 0f926e0 + c07090e commit df5a1e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

settings/js/apps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ OC.Settings.Apps = OC.Settings.Apps || {
238238
if (appfromstore) {
239239
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
240240
} else {
241-
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>';
242241
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '" class="app-icon"></image></svg>';
243242
}
244243
return img;

settings/templates/apps.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@
180180
</div>
181181
</div>
182182
<div id="app-content">
183+
<svg height="0">
184+
<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>
185+
</svg>
183186
<div id="apps-list" class="icon-loading"></div>
184187
<div id="apps-list-empty" class="hidden emptycontent emptycontent-search">
185188
<div class="icon-search"></div>

0 commit comments

Comments
 (0)