미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
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') | js | ||
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'); | |||
} | |||
} | } | ||