470
edits
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
$( function(){ | $( function(){ | ||
if (window.matchMedia("(max-width: 768px)").matches | if (window.matchMedia("(max-width: 768px)").matches) { | ||
if( mw.config.get("skin") !== "minerva" ){ | |||
const currWikiUrl = new URL(window.location.href); | |||
currWikiUrl.searchParams.set('mobileaction', 'toggle_view_mobile'); | |||
window.location.replace(currWikiUrl); | |||
} | |||
} else { | } else { | ||
if( mw.config.get("skin") !== "vector" ){ | if( mw.config.get("skin") !== "vector" ){ | ||
const currWikiUrl = new URL(window.location.href); | const currWikiUrl = new URL(window.location.href); | ||
currWikiUrl.searchParams.set(' | currWikiUrl.searchParams.set('mobileaction', 'toggle_view_desktop'); | ||
window.location.replace(currWikiUrl); | window.location.replace(currWikiUrl); |