mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
up
This commit is contained in:
@@ -23,7 +23,7 @@ export default defineNuxtPlugin(() => {
|
||||
const appConfig = useAppConfig()
|
||||
const nuxtApp = useNuxtApp()
|
||||
|
||||
const nonce = computed(() => (appConfig.ui as any)?.csp?.nonce as string | undefined)
|
||||
const nonce = computed(() => appConfig.ui?.csp?.nonce)
|
||||
|
||||
const root = computed(() => {
|
||||
const { neutral, ...colors } = appConfig.ui.colors
|
||||
@@ -42,7 +42,6 @@ export default defineNuxtPlugin(() => {
|
||||
})
|
||||
|
||||
// Head
|
||||
console.log('head nonce', nonce.value)
|
||||
const headData: UseHeadInput = {
|
||||
style: [{
|
||||
innerHTML: () => root.value,
|
||||
@@ -59,7 +58,6 @@ export default defineNuxtPlugin(() => {
|
||||
style.innerHTML = root.value
|
||||
style.setAttribute('data-nuxt-ui-colors', '')
|
||||
|
||||
console.log('SPA nonce', nonce.value)
|
||||
if (nonce.value) {
|
||||
style.setAttribute('nonce', nonce.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user