feat: implement app tracking consent dialog and update tracking state management

This commit is contained in:
2025-12-07 00:46:33 +01:00
parent ad090ce38c
commit d67d58824b
5 changed files with 97 additions and 1 deletions

View File

@@ -65,10 +65,15 @@ export class Config {
}
value(key: string) {
console.log('Accessing config key:', key, this.config[key]);
return {
set: <T>(val: T) => {
this.config[key] = val;
},
exists: () => {
console.log('Checking existence of key:', key, this.config[key] !== undefined);
return this.config[key] !== undefined;
},
get: <T>(fallback: T): T => {
return (this.config[key] as T) ?? fallback;
},