From d84e63fb569a795fc6a8615a133ec7d6507dbfa2 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Sat, 15 Aug 2026 18:48:26 +0200 Subject: [PATCH] remove: useless code that was used for disable theme on Linux --- public/script/customConfiguration.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 public/script/customConfiguration.js diff --git a/public/script/customConfiguration.js b/public/script/customConfiguration.js deleted file mode 100644 index 70936aa..0000000 --- a/public/script/customConfiguration.js +++ /dev/null @@ -1,27 +0,0 @@ -async function initPlatformRestrictions() { - const platform = await window.electronAPI.getProcessPlatform(); - - const themeSelect = document.getElementById("themeSelect"); - const refreshBtn = document.getElementById("refresh-themes-btn"); - - /** - * Is the OS windows - * @type {boolean} - */ - const isWindows = platform === "win32"; - - console.log(isWindows); - - // If it's windows, the button is not disabled. - themeSelect.disabled = !isWindows; - refreshBtn.disabled = !isWindows; - - themeSelect.classList.toggle("disabled", !isWindows); - refreshBtn.classList.toggle("disabled", !isWindows); - - if (!isWindows) { - themeSelect.title = "Themes are only available on Windows"; - refreshBtn.title = "Themes are only available on Windows"; - } -} -