From 0a8fae06c2e6df55fb02b87adb7b714b304c96a8 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 4 Jan 2025 00:07:26 +0200 Subject: [PATCH] Don't set an undefined theme field to an empty string --- public/scripts/power-user.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 5c830fec6..bfc6f4741 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -1313,9 +1313,7 @@ function applyTheme(name) { if (type) applyThemeColor(type); if (action) action(); } else { - if (selector) { $(selector).attr('color', 'rgba(0,0,0,0)'); } console.debug(`Empty theme key: ${key}`); - power_user[key] = ''; } }