We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd71e63 commit 19b7eceCopy full SHA for 19b7ece
src/runtime/plugin.client.ts
@@ -82,7 +82,7 @@ export default defineNuxtPlugin((nuxtApp) => {
82
if (Object.keys(cookieAttrs).length) {
83
let cookieString = storageKey + '=' + preference
84
for (const key in cookieAttrs) {
85
- cookieString += `; ${key}=${cookieAttrs[key]}`
+ cookieString += `; ${key}=${cookieAttrs[key as keyof typeof cookieAttrs]}`
86
}
87
window.document.cookie = cookieString
88
0 commit comments