MediaWiki:Mobile.js

/* Any JavaScript here is loaded instead of MediaWiki:Common.js for users using the mobile site */

/** * Make first mobile view switch to desktop * . check for localStorage capability * . if capable and key not found, set key and switch to desktop */ ( function {	'use strict';

var key = 'mobileSwitch';

if ( ( typeof Storage !== 'undefined' ) && ( localStorage[key] === null ) ) { localStorage[key] = ''; location.search += ( location.search === '' ? '?' : '&' ) + 'mobileaction=toggle_view_desktop'; } } );