Skip to content

Commit 3a6356e

Browse files
committed
chore: improve syntax
1 parent d9ec6a4 commit 3a6356e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default {
1515
1616
onBeforeMount(() => {
1717
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]
18+
const theme =
19+
urlParams.get('theme') &&
20+
urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0]
1921
if (theme) {
2022
setColorMode(theme)
2123
return

0 commit comments

Comments
 (0)