MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 837: Line 837:


function isUserLoggedIn() {
function isUserLoggedIn() {
mw.loader.using('mediawiki.util').then(function () {
  if (mw.config.get('wgUserName') === null) {
  if (mw.config.get('wgUserName') === null) {
    return false;
    return false;
  } else {
  } else {
    return true;
    return true;
  }
  }
});
}
}