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 d9ec6a4 commit 3a6356eCopy full SHA for 3a6356e
src/App.vue
@@ -15,7 +15,9 @@ export default {
15
16
onBeforeMount(() => {
17
const urlParams = new URLSearchParams(window.location.href.split('?')[1])
18
- const theme = urlParams.get('theme') && urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0]
+ const theme =
19
+ urlParams.get('theme') &&
20
+ urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0]
21
if (theme) {
22
setColorMode(theme)
23
return
0 commit comments