From fc8aac68ade06faceff0c6c3bf5bd8647537208d Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:00:58 +0100 Subject: [PATCH] fix: logging typo from `enable` to `optIn` (#134) --- posthog-core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog-core/src/index.ts b/posthog-core/src/index.ts index fba08b6d..b1a80683 100644 --- a/posthog-core/src/index.ts +++ b/posthog-core/src/index.ts @@ -396,7 +396,7 @@ export abstract class PostHogCoreStateless { ***/ protected enqueue(type: string, _message: any, options?: PosthogCaptureOptions): void { if (this.optedOut) { - this._events.emit(type, `Library is disabled. Not sending event. To re-enable, call posthog.enable()`) + this._events.emit(type, `Library is disabled. Not sending event. To re-enable, call posthog.optIn()`) return }