WebUI: Use modern class syntax to create LocalPreferences class

LocalPreferences class is now created using modern class syntax (minimal changes to remove Mootools bits). In addition, I removed redundant suffix from class name.

PR #21780.
This commit is contained in:
skomerko
2024-11-09 09:40:25 +01:00
committed by GitHub
parent 71f83cf9ba
commit 3ec645674a
2 changed files with 9 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ window.qBittorrent.Dialog ??= (() => {
})();
Object.freeze(window.qBittorrent.Dialog);
const LocalPreferences = new window.qBittorrent.LocalPreferences.LocalPreferencesClass();
const LocalPreferences = new window.qBittorrent.LocalPreferences.LocalPreferences();
let saveWindowSize = () => {};
let loadWindowWidth = () => {};