Disable Webfonts too for blacklisted browsers
Change-Id: I9feb342b091e00ef0279333018b86045932d68de
This commit is contained in:
committed by
Gerrit Code Review
parent
9d75ff9a09
commit
3b3e2da332
@@ -107,6 +107,7 @@ $wgResourceModules['ext.uls.webfonts'] = array(
|
|||||||
'scripts' => 'resources/js/ext.uls.webfonts.js',
|
'scripts' => 'resources/js/ext.uls.webfonts.js',
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'jquery.webfonts',
|
'jquery.webfonts',
|
||||||
|
'ext.uls.init',
|
||||||
'ext.uls.webfonts.repository',
|
'ext.uls.webfonts.repository',
|
||||||
'ext.uls.preferences',
|
'ext.uls.preferences',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -81,6 +81,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$( document ).ready( function () {
|
$( document ).ready( function () {
|
||||||
|
if ( !mw.uls.isBrowserSupported() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// MediaWiki specific overrides for jquery.webfonts
|
// MediaWiki specific overrides for jquery.webfonts
|
||||||
$.extend( $.fn.webfonts.defaults, {
|
$.extend( $.fn.webfonts.defaults, {
|
||||||
repository: mediawikiFontRepository,
|
repository: mediawikiFontRepository,
|
||||||
|
|||||||
Reference in New Issue
Block a user