From d6a3a65b8e2c9d3fd9f8a6e9b1ecc581b710c02e Mon Sep 17 00:00:00 2001 From: HugoRCD Date: Mon, 19 May 2025 14:14:34 +0200 Subject: [PATCH] up --- src/runtime/plugins/colors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/plugins/colors.ts b/src/runtime/plugins/colors.ts index 8c489f05..0de2b390 100644 --- a/src/runtime/plugins/colors.ts +++ b/src/runtime/plugins/colors.ts @@ -64,7 +64,8 @@ export default defineNuxtPlugin(() => { document.head.appendChild(style) headData.script = [{ - innerHTML: 'document.head.removeChild(document.querySelector(\'[data-nuxt-ui-colors]\'))' + innerHTML: 'document.head.removeChild(document.querySelector(\'[data-nuxt-ui-colors]\'))', + ...(nonce.value ? { nonce: nonce.value } : {}) }] }