We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2baf77 commit f33ed87Copy full SHA for f33ed87
src/index.ts
@@ -60,7 +60,7 @@ const hints = [
60
${Object.values(hints)
61
.map((hint) => {
62
const cookieName = JSON.stringify(hint.cookieName)
63
- return `{ name: ${cookieName}, actual: String(${hint.getValueCode}), value: cookies[${cookieName}] ?? encodeURIComponent("${hint.fallback}") }`
+ return `{ name: ${cookieName}, actual: String(${hint.getValueCode}), value: cookies[${cookieName}] != null ? cookies[${cookieName}] : encodeURIComponent("${hint.fallback}") }`
64
})
65
.join(',\n')}
66
];
0 commit comments