Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6007382
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
Oct 4 2026, 08:44 (5 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f7/45/9f4e9c1f7dc455286b6de40a6736
Default Alt Text
setUserConfigFlags.js (540 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment