From c5a93b6bd98631fde222b43c5327c62301edecce Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 31 Jan 2024 10:45:29 +0000 Subject: [PATCH] Fixes --- src/__tests__/extensions/replay/sessionrecording.test.ts | 4 ---- src/posthog-core.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/__tests__/extensions/replay/sessionrecording.test.ts b/src/__tests__/extensions/replay/sessionrecording.test.ts index 8ba67e05b..f79796d29 100644 --- a/src/__tests__/extensions/replay/sessionrecording.test.ts +++ b/src/__tests__/extensions/replay/sessionrecording.test.ts @@ -536,7 +536,6 @@ describe('SessionRecording', () => { $window_id: 'windowId', }, { - transport: 'XHR', method: 'POST', endpoint: '/s/', _noTruncate: true, @@ -575,7 +574,6 @@ describe('SessionRecording', () => { }, { method: 'POST', - transport: 'XHR', endpoint: '/s/', _noTruncate: true, _batchKey: 'recordings', @@ -660,7 +658,6 @@ describe('SessionRecording', () => { }, { method: 'POST', - transport: 'XHR', endpoint: '/s/', _noTruncate: true, _batchKey: 'recordings', @@ -1288,7 +1285,6 @@ describe('SessionRecording', () => { _noTruncate: true, endpoint: '/s/', method: 'POST', - transport: 'XHR', } ) expect(sessionRecording['buffer']).toEqual({ diff --git a/src/posthog-core.ts b/src/posthog-core.ts index 89613a53a..f4871df71 100644 --- a/src/posthog-core.ts +++ b/src/posthog-core.ts @@ -58,7 +58,7 @@ import { logger } from './utils/logger' import { document, userAgent } from './utils/globals' import { SessionPropsManager } from './session-props' import { _isBlockedUA } from './utils/blocked-uas' -import { SUPPORTS_REQUEST } from 'utils/request-utils' +import { SUPPORTS_REQUEST } from './utils/request-utils' /* SIMPLE STYLE GUIDE: