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

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
var currentUrl = window.location.href;
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'))
if(!mw.config.get('wgUserId') && currentUrl.includes('common.js')){
js
console.log('redirect');
if(!mw.config.get('wgUserId')){
var currentUrl = window.location.href;
var js = currentUrl.includes('common.js');
var css = currentUrl.includes('common.css');
if(js || css){
console.log('redirect');
}
}
}