Prtksxna has uploaded a new change for review.
https://gerrit.wikimedia.org/r/142212
Change subject: Force mw.popups.supportsSVG to false on InternetExplorer
......................................................................
Force mw.popups.supportsSVG to false on InternetExplorer
Change-Id: I1d59167f3c2e166e32ef2f46fa4a527dd3a3410f
---
M resources/ext.popups.core.js
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups
refs/changes/12/142212/1
diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js
index 9db8c8c..4744b0e 100644
--- a/resources/ext.popups.core.js
+++ b/resources/ext.popups.core.js
@@ -7,10 +7,17 @@
mw.popups = {};
/**
+ * Checks is the browser is Internet Explorer
+ * @property {Boolean} isIE
+ */
+ mw.popups.isIE = ( window.navigator.userAgent.indexOf( 'MSIE' ) === -1
) ? false : true;
+
+ /**
* Checks SVG support on the browser
+ * Set to false on Internet Explorer
* @property {Boolean} supportsSVG
*/
- mw.popups.supportsSVG = document.implementation.hasFeature(
'http://www.w3.org/TR/SVG11/feature#Image', '1.1' );
+ mw.popups.supportsSVG = ( mw.popups.isIE ) ? false :
document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image',
'1.1' );
/**
* The API object used for all this extension's requests
--
To view, visit https://gerrit.wikimedia.org/r/142212
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d59167f3c2e166e32ef2f46fa4a527dd3a3410f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits