Skip to content

Commit 62d6933

Browse files
committed
style: use more verbose style so jiti understands
1 parent 064cf49 commit 62d6933

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/parts/pwa.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { provider } from 'std-env'
55
export const setupPWA = async () => {
66
const nuxt = useNuxt()
77

8-
nuxt.options.pwa ||= {} as NuxtOptions['pwa']
8+
nuxt.options.pwa = nuxt.options.pwa || ({} as NuxtOptions['pwa'])
99

1010
const pwaOptions: NuxtConfig['pwa'] = nuxt.options.pwa
1111

@@ -17,8 +17,8 @@ export const setupPWA = async () => {
1717
}
1818

1919
// Generate splash screens for iOS
20-
pwaOptions.meta ||= {}
21-
pwaOptions.meta.mobileAppIOS ??= true
20+
pwaOptions.meta = pwaOptions.meta || {}
21+
pwaOptions.meta.mobileAppIOS = pwaOptions.meta.mobileAppIOS ?? true
2222

2323
await installModule('@kevinmarrec/nuxt-pwa')
2424
}

0 commit comments

Comments
 (0)