Page MenuHomeWickedGov Phorge

skins.citizen.preferences.js
No OneTemporary

Size
733 B
Referenced Files
None
Subscribers
None

skins.citizen.preferences.js

/**
* Clientprefs names theme differently from Citizen, we will need to translate it
* TODO: Migrate to clientprefs fully on MW 1.43
*/
/**
* Load client preferences based on the existence of 'citizen-preferences__card' element.
*/
function loadClientPreferences() {
const clientPreferenceId = 'citizen-preferences-content';
const clientPreferenceExists = document.getElementById( clientPreferenceId ) !== null;
if ( clientPreferenceExists ) {
const clientPreferences = require( /** @type {string} */( './clientPreferences.js' ) );
const clientPreferenceConfig = ( require( './clientPreferences.json' ) );
clientPreferences.render( `#${ clientPreferenceId }`, clientPreferenceConfig );
}
}
loadClientPreferences();

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 02:30 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/17/5d486602a8f0201b76409ae06e91
Default Alt Text
skins.citizen.preferences.js (733 B)

Event Timeline