From 89b5437a814b5bc62c318769b8ae7b21a81148d5 Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 8 May 2024 10:09:50 +0200 Subject: [PATCH] Fix request queue --- src/posthog-core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posthog-core.ts b/src/posthog-core.ts index a6dc05dff..36f3d2095 100644 --- a/src/posthog-core.ts +++ b/src/posthog-core.ts @@ -385,7 +385,7 @@ export class PostHog { ? this.persistence : new PostHogPersistence({ ...this.config, persistence: 'sessionStorage' }) - this._requestQueue = new RequestQueue((req) => this._send_request(req)) + this._requestQueue = new RequestQueue((req) => this._send_retriable_request(req)) this._retryQueue = new RetryQueue(this) this.__request_queue = []