미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
var currentUrl = window.location.href; | var currentUrl = window.location.href; | ||
console.log('url', currentUrl); | |||
console.log('login', mw.config.get('wgUserId')); | console.log('login', mw.config.get('wgUserId')); | ||
console.log('comon', currentUrl.includes(' | console.log('comon', currentUrl.includes('Common.js')) | ||
if(!mw.config.get('wgUserId') && currentUrl.includes('common.js')){ | if(!mw.config.get('wgUserId') && currentUrl.includes('common.js')){ | ||
console.log('redirect'); | console.log('redirect'); | ||