Skip to content

Commit

Permalink
fix: fix URL matching for toggling of dark-mode style element (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelKed committed May 6, 2024
1 parent 10ed9b3 commit b54b5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/settings/Theme.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
},
},
Expand Down

1 comment on commit b54b5cb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.