diff --git a/resources/mmv.bootstrap.autostart/mmv.bootstrap.autostart.js b/resources/mmv.bootstrap.autostart/mmv.bootstrap.autostart.js index e4cd1f58e..f923c3b1d 100644 --- a/resources/mmv.bootstrap.autostart/mmv.bootstrap.autostart.js +++ b/resources/mmv.bootstrap.autostart/mmv.bootstrap.autostart.js @@ -20,10 +20,6 @@ ( function () { var bootstrap; - if ( !mw.mmv.isBrowserSupported() ) { - return; - } - bootstrap = new mw.mmv.MultimediaViewerBootstrap(); $( function () { diff --git a/resources/mmv.head/base.js b/resources/mmv.head/base.js index 2f12e6cf7..20f7ff07b 100644 --- a/resources/mmv.head/base.js +++ b/resources/mmv.head/base.js @@ -17,18 +17,5 @@ // Included on every page which has images so keep it lightweight. ( function () { - mw.mmv = { - /** - * Feature-detects SVG support. MuyltimediaViewer uses SVG icons extensively and is - * unusable without them. - * - * @member mw.mmv.MultimediaViewer - * @return {boolean} - */ - isBrowserSupported: function () { - // From modernizr 2.6.1 - var ns = { svg: 'http://www.w3.org/2000/svg' }; - return !!document.createElementNS && !!document.createElementNS( ns.svg, 'svg' ).createSVGRect; - } - }; + mw.mmv = {}; }() ); diff --git a/resources/mmv.head/mmv.head.js b/resources/mmv.head/mmv.head.js index a32d8a814..95c7e29a9 100644 --- a/resources/mmv.head/mmv.head.js +++ b/resources/mmv.head/mmv.head.js @@ -19,10 +19,6 @@ var $document = $( document ), start; - if ( !mw.mmv.isBrowserSupported() ) { - return; - } - // If the user disabled MediaViewer in his preferences, we do not set up click handling. // This is loaded before user JS so we cannot check wgMediaViewer. if (