@obtrace/browser 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -238,7 +238,7 @@ export function initBrowserSDK(config) {
|
|
|
238
238
|
}
|
|
239
239
|
}, config.replay?.flushIntervalMs ?? 5000);
|
|
240
240
|
const sendViaBeacon = () => {
|
|
241
|
-
const url = `${config.ingestBaseUrl?.replace(/\/$/, "")}/ingest/replay/chunk`;
|
|
241
|
+
const url = `${config.ingestBaseUrl?.replace(/\/$/, "")}/ingest/replay/chunk?token=${encodeURIComponent(config.apiKey)}`;
|
|
242
242
|
const freshChunk = replay.flush();
|
|
243
243
|
if (freshChunk) {
|
|
244
244
|
navigator.sendBeacon(url, new Blob([JSON.stringify(freshChunk)], { type: "application/json" }));
|
|
@@ -30748,7 +30748,7 @@ function initBrowserSDK(config) {
|
|
|
30748
30748
|
}
|
|
30749
30749
|
}, config.replay?.flushIntervalMs ?? 5e3);
|
|
30750
30750
|
const sendViaBeacon = () => {
|
|
30751
|
-
const url = `${config.ingestBaseUrl?.replace(/\/$/, "")}/ingest/replay/chunk`;
|
|
30751
|
+
const url = `${config.ingestBaseUrl?.replace(/\/$/, "")}/ingest/replay/chunk?token=${encodeURIComponent(config.apiKey)}`;
|
|
30752
30752
|
const freshChunk = replay.flush();
|
|
30753
30753
|
if (freshChunk) {
|
|
30754
30754
|
navigator.sendBeacon(url, new Blob([JSON.stringify(freshChunk)], { type: "application/json" }));
|