mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 15:44:33 +00:00
110656335f
Removes functionality to * select PNG rendering mode * automated fallback to PNG images for SVG rendering * PNG mode related class and tests However, PNG images received from mathoid / restbase are still stored. Bug: T311620 Change-Id: I595926027433182cc0396570bc3f1ce0cd2cafb3
13 lines
394 B
JavaScript
13 lines
394 B
JavaScript
/* eslint-disable no-jquery/no-global-selector */
|
|
( function () {
|
|
'use strict';
|
|
|
|
// If MathPlayer is installed we show the MathML rendering.
|
|
if ( navigator.userAgent.indexOf( 'MathPlayer' ) > -1 ) {
|
|
$( '.mwe-math-mathml-a11y' ).removeClass( 'mwe-math-mathml-a11y' );
|
|
$( '.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display' ).css( 'display', 'none' );
|
|
return;
|
|
}
|
|
|
|
}() );
|