Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 14:39, 18 April 2018
8 bytes added
,
14:39, 18 April 2018
no edit summary
Line 24:
Line 24:
var currentLang = data.query.userinfo.options.language;
var currentLang = data.query.userinfo.options.language;
−
if(lang != currentLang){
+
if(
lang &&
lang != currentLang){
$.ajax({
$.ajax({
url: 'api.php',
url: 'api.php',
Mark.wooff
Bureaucrats
,
Administrators
55
edits