Remove SVG checks

Bug: T223649
Change-Id: I252ca1cbba3e67921a4db82358d22bf02c20dc63
This commit is contained in:
Simon Legner 2019-05-18 17:46:20 +02:00
parent 8251aa89b7
commit b23a32a413
3 changed files with 1 additions and 22 deletions

View file

@ -20,10 +20,6 @@
( function () { ( function () {
var bootstrap; var bootstrap;
if ( !mw.mmv.isBrowserSupported() ) {
return;
}
bootstrap = new mw.mmv.MultimediaViewerBootstrap(); bootstrap = new mw.mmv.MultimediaViewerBootstrap();
$( function () { $( function () {

View file

@ -17,18 +17,5 @@
// Included on every page which has images so keep it lightweight. // Included on every page which has images so keep it lightweight.
( function () { ( function () {
mw.mmv = { 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;
}
};
}() ); }() );

View file

@ -19,10 +19,6 @@
var $document = $( document ), var $document = $( document ),
start; start;
if ( !mw.mmv.isBrowserSupported() ) {
return;
}
// If the user disabled MediaViewer in his preferences, we do not set up click handling. // 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. // This is loaded before user JS so we cannot check wgMediaViewer.
if ( if (