From 3a6356e5b4f130096089ef61ea2382968e13d19f Mon Sep 17 00:00:00 2001 From: mrholek Date: Tue, 26 Sep 2023 17:58:17 +0200 Subject: [PATCH] chore: improve syntax --- src/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 3bf695b5..ce9a7185 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,9 @@ export default { onBeforeMount(() => { const urlParams = new URLSearchParams(window.location.href.split('?')[1]) - const theme = urlParams.get('theme') && urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0] + const theme = + urlParams.get('theme') && + urlParams.get('theme').match(/^[A-Za-z0-9\s]+/)[0] if (theme) { setColorMode(theme) return