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',
|
||||
'dependencies' => array(
|
||||
'jquery.webfonts',
|
||||
'ext.uls.init',
|
||||
'ext.uls.webfonts.repository',
|
||||
'ext.uls.preferences',
|
||||
),
|
||||
|
||||
@@ -81,6 +81,9 @@
|
||||
};
|
||||
|
||||
$( document ).ready( function () {
|
||||
if ( !mw.uls.isBrowserSupported() ) {
|
||||
return;
|
||||
}
|
||||
// MediaWiki specific overrides for jquery.webfonts
|
||||
$.extend( $.fn.webfonts.defaults, {
|
||||
repository: mediawikiFontRepository,
|
||||
|
||||
Reference in New Issue
Block a user