mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-11 07:26:03 +00:00
88f35be0cf
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
(cherry picked from commit 110656335f
)
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;
|
|
}
|
|
|
|
}() );
|