mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-18 02:40:56 +00:00
Remove SVG checks
Bug: T223649 Change-Id: I252ca1cbba3e67921a4db82358d22bf02c20dc63
This commit is contained in:
parent
8251aa89b7
commit
b23a32a413
|
@ -20,10 +20,6 @@
|
|||
( function () {
|
||||
var bootstrap;
|
||||
|
||||
if ( !mw.mmv.isBrowserSupported() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
bootstrap = new mw.mmv.MultimediaViewerBootstrap();
|
||||
|
||||
$( function () {
|
||||
|
|
|
@ -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 = {};
|
||||
}() );
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue