미디어위키:Common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
if(!mw.config.get('wgUserId')){
console.log('url', currentUrl);
console.log('url', currentUrl);
console.log('login', mw.config.get('wgUserId'));
console.log('login', mw.config.get('wgUserId'));
console.log('comon', currentUrl.includes('Common.js'))
console.log('comon', currentUrl.includes('Common.js'))
js
if(!mw.config.get('wgUserId')){
var currentUrl = window.location.href;
var currentUrl = window.location.href;
var js = currentUrl.includes('common.js');
var js = currentUrl.includes('common.js');
10번째 줄: 9번째 줄:
console.log('redirect');
console.log('redirect');
}
}
}
}