From 631e873ff22436adce77892e01d86ec48b71feb1 Mon Sep 17 00:00:00 2001 From: Hanabishi <13597663+HanabishiRecca@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:53:06 +0500 Subject: [PATCH] WebUI: fix preferences class name Fixup for #21780. Account for changed preferences class name in the color scheme logic. PR #21809. --- src/webui/www/private/scripts/color-scheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/color-scheme.js b/src/webui/www/private/scripts/color-scheme.js index 69607f316..d02fce243 100644 --- a/src/webui/www/private/scripts/color-scheme.js +++ b/src/webui/www/private/scripts/color-scheme.js @@ -36,7 +36,7 @@ window.qBittorrent.ColorScheme ??= (() => { }; }; - const LocalPreferences = new window.qBittorrent.LocalPreferences.LocalPreferencesClass(); + const LocalPreferences = new window.qBittorrent.LocalPreferences.LocalPreferences(); const colorSchemeQuery = window.matchMedia("(prefers-color-scheme: dark)"); const update = () => {