From af16694818ff8528be2576cde6e336016e11c94c Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Mon, 6 May 2024 20:53:19 +0200 Subject: [PATCH] Fix URL matching --- src/views/settings/Theme.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/settings/Theme.vue b/src/views/settings/Theme.vue index 6efe01ef..95844bcd 100644 --- a/src/views/settings/Theme.vue +++ b/src/views/settings/Theme.vue @@ -41,7 +41,7 @@ export default { // Append Dark Theme Element If Selected Mode Is Dark value === 'dark' ? document.querySelector('head').appendChild(themeLink) - : document.querySelector(`link[href="${themeLink.href}"]`).remove(); + : document.querySelector(`link[href="${new URL(themeLink.href).pathname}"]`).remove(); }, }, },