We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f608a1e commit 64bc94dCopy full SHA for 64bc94d
src/views/settings/Theme.vue
@@ -36,12 +36,12 @@ export default {
36
// Apply newly set theme
37
// Create Dark Theme Element
38
const themeLink = document.createElement('link');
39
- themeLink.href = '/static/dark.css';
+ themeLink.href = '/dark.css';
40
themeLink.rel = 'stylesheet';
41
// Append Dark Theme Element If Selected Mode Is Dark
42
value === 'dark'
43
? document.querySelector('head').appendChild(themeLink)
44
- : document.querySelector('link[href="/static/dark.css"]').remove();
+ : document.querySelector(`link[href="${themeLink.href}"]`).remove();
45
},
46
47
0 commit comments