MCPcopy Create free account
hub / github.com/winfunc/opcode / saveSettings

Method saveSettings

src/lib/analytics/consent.ts:114–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 private async saveSettings(): Promise<void> {
115 if (!this.settings) return;
116
117 try {
118 localStorage.setItem(ANALYTICS_STORAGE_KEY, JSON.stringify(this.settings));
119 } catch (error) {
120 console.error('Failed to save analytics settings:', error);
121 }
122 }
123
124 private generateAnonymousId(): string {
125 // Generate a UUID v4

Callers 4

initializeMethod · 0.95
grantConsentMethod · 0.95
revokeConsentMethod · 0.95
deleteAllDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected