From 92307893fadd900495336a0a5fc0bd2a05fab494 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Tue, 18 Jun 2024 12:24:39 -0800 Subject: [PATCH] Client preferences should user new user preference API Follow up to Ic40da2af8ea46bd42cbebbdbceda2431bd8600ae Bug: T341278 Change-Id: Iaaf75d9c91d594d826b556fc7d04965a3a3bd3a9 --- resources/skins.vector.js/skin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/skins.vector.js/skin.js b/resources/skins.vector.js/skin.js index 1b4f79126..296d4fa09 100644 --- a/resources/skins.vector.js/skin.js +++ b/resources/skins.vector.js/skin.js @@ -12,6 +12,7 @@ const languageButton = require( './languageButton.js' ), watchstar = require( './watchstar.js' ).init, setupIntersectionObservers = require( './setupIntersectionObservers.js' ), menuTabs = require( './menuTabs.js' ), + userPreferences = require( './userPreferences.js' ), legacyMessageBoxStyles = require( './legacyMessageBoxStyles.js' ), { isNightModeGadgetEnabled, disableNightModeForGadget, alterExclusionMessage } = require( './disableNightModeIfGadget.js' ), teleportTarget = /** @type {HTMLElement} */require( /** @type {string} */ ( 'mediawiki.page.ready' ) ).teleportTarget; @@ -93,10 +94,10 @@ function main( window ) { // disable our night mode if so if ( isNightModeGadgetEnabled() ) { disableNightModeForGadget(); - clientPreferences.render( appearanceMenuSelector, clientPreferenceConfig ); + clientPreferences.render( appearanceMenuSelector, clientPreferenceConfig, userPreferences ); alterExclusionMessage(); } else { - clientPreferences.render( appearanceMenuSelector, clientPreferenceConfig ); + clientPreferences.render( appearanceMenuSelector, clientPreferenceConfig, userPreferences ); } } ); }