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

Method disable

src/lib/analytics/index.ts:115–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 async disable(): Promise<void> {
116 await this.consentManager.revokeConsent();
117 if (typeof posthog !== 'undefined' && posthog.opt_out_capturing) {
118 posthog.opt_out_capturing();
119 }
120 }
121
122 async deleteAllData(): Promise<void> {
123 await this.consentManager.deleteAllData();

Callers 2

SettingsFunction · 0.80
handleDeclineFunction · 0.80

Calls 1

revokeConsentMethod · 0.80

Tested by

no test coverage detected