mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 05:08:03 +01:00
up
This commit is contained in:
@@ -42,6 +42,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Head
|
// Head
|
||||||
|
console.log('head nonce', nonce.value)
|
||||||
const headData: UseHeadInput = {
|
const headData: UseHeadInput = {
|
||||||
style: [{
|
style: [{
|
||||||
innerHTML: () => root.value,
|
innerHTML: () => root.value,
|
||||||
@@ -58,6 +59,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
style.innerHTML = root.value
|
style.innerHTML = root.value
|
||||||
style.setAttribute('data-nuxt-ui-colors', '')
|
style.setAttribute('data-nuxt-ui-colors', '')
|
||||||
|
|
||||||
|
console.log('SPA nonce', nonce.value)
|
||||||
if (nonce.value) {
|
if (nonce.value) {
|
||||||
style.setAttribute('nonce', nonce.value)
|
style.setAttribute('nonce', nonce.value)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user