diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-16 12:46:25 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-16 12:46:25 +0200 |
commit | c07896651119dec79dbfbd9a05e5254aa407f49d (patch) | |
tree | 79c22b78afce68595460aa6ff72b61636606c3b0 /core | |
parent | b885bad2eebed23a23f86bdb6297551096428c7f (diff) | |
download | nextcloud-server-c07896651119dec79dbfbd9a05e5254aa407f49d.tar.gz nextcloud-server-c07896651119dec79dbfbd9a05e5254aa407f49d.zip |
trying SVG check that Modernizr uses, to fix Firefox 3.6 problems
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3e53a8bbce2..9ad9810a7e0 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -180,7 +180,7 @@ if (!Array.prototype.indexOf){ * check if the browser support svg images */ function SVGSupport() { - return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") || document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0"); + return !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect; } /** |