-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/cookie consent package #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
function setDefaultConsent(serviceKeys: ServiceKey[]) { | ||
gtag({ | ||
event: "default_cookie_consent", | ||
settings: Object.fromEntries(serviceKeys.map(serviceName => [serviceName as ServiceKey, "denied"])), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, does this as ServiceKey
even does anything? Object.fromEntries
always returns {[key: string]: T}
, regardless of key's type
} | ||
} | ||
|
||
const languageTranslations: Record<string, any> = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const languageTranslations: Record<string, any> = {} | |
const languageTranslations: Record<string, Translation> = {} |
langConfig: (typeof config)[Language], | ||
options: { analytics?: boolean; advertisement?: boolean; functionality?: boolean; security?: boolean }, | ||
) { | ||
const sections: any[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const sections: any[] = [ | |
const sections = [ |
No description provided.