Use the old way of checking browser support for MW < 1.22
Bug: 52322 Change-Id: I346c1119b2ae841b3dbb2e7b8a5a2d924269b150
This commit is contained in:
@@ -224,6 +224,12 @@
|
|||||||
'msie': [['<=', 7]]
|
'msie': [['<=', 7]]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// jquery.client changed in MediaWiki 1.22.
|
||||||
|
// FIXME: Remove when ULS minimum MW version is 1.22.
|
||||||
|
if ( parseInt( mw.config.get( 'wgVersion' ).split( '.' )[1], '10' ) < 22 ) {
|
||||||
|
return !/MSIE [67]/i.test( navigator.userAgent );
|
||||||
|
}
|
||||||
|
|
||||||
return !$.client.test( blacklist, null, true );
|
return !$.client.test( blacklist, null, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user