From c6af72560079cfc748ee6d027fd7e6e7acbaa79a Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Tue, 8 Nov 2016 00:06:40 +0100 Subject: [PATCH] Apply firefox workaroud to svg filters Signed-off-by: Julius Haertl --- core/js/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index 2939b558d9d..bf493b7650f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1961,11 +1961,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) { -- 2.39.5