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

Method enable

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

Source from the content-addressed store, hash-verified

105 }
106
107 async enable(): Promise<void> {
108 await this.consentManager.grantConsent();
109 const settings = this.consentManager.getSettings();
110 if (settings) {
111 this.initializePostHog(settings);
112 }
113 }
114
115 async disable(): Promise<void> {
116 await this.consentManager.revokeConsent();

Callers 2

SettingsFunction · 0.80
handleAcceptFunction · 0.80

Calls 3

initializePostHogMethod · 0.95
grantConsentMethod · 0.80
getSettingsMethod · 0.45

Tested by

no test coverage detected