diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-11-08 00:06:40 +0100 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-11-08 09:55:29 +0100 |
commit | d3d49c1e98d34d8f9762c2b143c633abf6f29370 (patch) | |
tree | 4638d7ee2057f11bab3b5e7767de7daaee45b3e8 /core/js/js.js | |
parent | 1857e50259e3cedffd9d9c24ce2a47bf08ebf782 (diff) | |
download | nextcloud-server-d3d49c1e98d34d8f9762c2b143c633abf6f29370.tar.gz nextcloud-server-d3d49c1e98d34d8f9762c2b143c633abf6f29370.zip |
Apply firefox workaroud to svg filters
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index bcf9aeb9d42..54b103a7b7d 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1841,11 +1841,13 @@ OC.Util.History = { // https://bugzilla.mozilla.org/show_bug.cgi?id=652991 var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; if (isFirefox && parseInt(navigator.userAgent.split('/').pop()) < 51) { - var patterns = document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"]'); + var patterns = document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'); for (var i = 0, ii = patterns.length, pattern; i < ii; i++) { pattern = patterns[i]; pattern.style.fill = pattern.style.fill; pattern.style.stroke = pattern.style.stroke; + pattern.removeAttribute("filter"); + pattern.setAttribute("filter", "url(#invert)"); } } if (replace) { |