Page MenuHomeWickedGov Phorge

setUserConfigFlags.js
No OneTemporary

Size
540 B
Referenced Files
None
Subscribers
None

setUserConfigFlags.js

/**
* @module setUserConfigFlags
* @private
*/
/**
* Same as in includes/PopupsContext.php
*/
const NAV_POPUPS_ENABLED = 1;
/**
* Decodes the bitmask that represents preferences to the related config options.
*
* @param {mw.Map} config
*/
export default function setUserConfigFlags( config ) {
const popupsFlags = parseInt( config.get( 'wgPopupsFlags' ), 10 );
/* eslint-disable no-bitwise */
config.set(
'wgPopupsConflictsWithNavPopupGadget',
!!( popupsFlags & NAV_POPUPS_ENABLED )
);
/* eslint-enable no-bitwise */
}

File Metadata

Mime Type
text/plain
Expires
Sat, May 16, 14:26 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c4/25/adde3aac42a57bfc933b45506334
Default Alt Text
setUserConfigFlags.js (540 B)

Event Timeline