There are a number of RL modules that use the wgMFMode client-side global configuration variable as a proxy for "is the user viewing the mobile version of the site", e.g.
var isMobile = mw.config.get( 'wgMFMode' ) !== null;
- Is this an acceptable use of wgMFMode?
- If so, could this be document where it's added to the output so that it doesn't get removed?
- If not, could we introduce a new stable variable to use, e.g. wgMFIsMobile?