WebUI: fix preferences class name

Fixup for #21780. Account for changed preferences class name in the color scheme logic.

PR #21809.
This commit is contained in:
Hanabishi 2024-11-11 15:53:06 +05:00 committed by GitHub
parent 69f19d4a0b
commit 631e873ff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 colorSchemeQuery = window.matchMedia("(prefers-color-scheme: dark)");
const update = () => { const update = () => {