chore: remove default value for spaLoaderAttrs

This commit is contained in:
Daniel Roe 2024-11-27 14:17:33 +00:00
parent 4b5b8ce38a
commit 6ca7600a57
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -274,14 +274,7 @@ export default defineUntypedSchema({
* Customize Nuxt Nuxt SpaLoader element attributes. * Customize Nuxt Nuxt SpaLoader element attributes.
* @type {typeof import('@unhead/schema').HtmlAttributes} * @type {typeof import('@unhead/schema').HtmlAttributes}
*/ */
spaLoaderAttrs: { spaLoaderAttrs: {},
$resolve: async (val: undefined | null | Record<string, unknown>, get) => {
const spaLoaderId = await get('app.spaLoaderId')
return defu(val, {
id: spaLoaderId === false ? undefined : (spaLoaderId || '__nuxt-spa-loader'),
})
},
},
}, },
/** /**