feat: implement app tracking consent dialog and update tracking state management
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user