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 d5cab9c commit 37f1b25Copy full SHA for 37f1b25
app/pages/index.vue
@@ -28,7 +28,8 @@ defineOgImageComponent('Default', {
28
// const route = useRoute()
29
// const isKawaii = computed(() => route.query.kawaii === 'true')
30
onPrehydrate(el => {
31
- const isKawaii = window.location.search.includes('kawaii=true')
+ const params = new URLSearchParams(window.location.search)
32
+ const isKawaii = params.get('kawaii') === 'true'
33
const normal = el.querySelector('#npmx-index-h1-logo-normal') as HTMLElement
34
const kawaii = el.querySelector('#npmx-index-h1-logo-kawaii') as HTMLElement
35
const env = el.querySelector('#npmx-index-h1-logo-env') as HTMLElement
0 commit comments