Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431846
setUserConfigFlags.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
540 B
Referenced Files
None
Subscribers
None
setUserConfigFlags.js
View Options
/**
* @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
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 21:07 (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c4/25/adde3aac42a57bfc933b45506334
Default Alt Text
setUserConfigFlags.js (540 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment