We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7baa6 commit afadc17Copy full SHA for afadc17
src/App.vue
@@ -15,8 +15,9 @@ export default {
15
16
onBeforeMount(() => {
17
const urlParams = new URLSearchParams(window.location.href.split('?')[1])
18
- if (urlParams.get('theme')) {
19
- setColorMode(urlParams.get('theme'))
+ const theme = urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0]
+ if (theme) {
20
+ setColorMode(theme)
21
return
22
}
23
0 commit comments