@adobe/helix-rum-enhancer
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,8 @@ | ||
## [2.3.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.3.0...v2.3.1) (2024-03-11) | ||
### Bug Fixes | ||
* add json type header to beacon ([a1e0807](https://github.com/adobe/helix-rum-enhancer/commit/a1e0807f735a7c8097c588f401efdb9aac08dfc7)) | ||
# [2.3.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.2.0...v2.3.0) (2024-03-06) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Helix RUM Enhancer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -85,3 +85,4 @@ /* | ||
const url = new URL(`.rum/${weight}`, sampleRUM.collectBaseURL || sampleRUM.baseURL).href; | ||
navigator.sendBeacon(url, body); | ||
const headers = { type: 'application/json' }; | ||
navigator.sendBeacon(url, new Blob([body], headers)); | ||
// eslint-disable-next-line no-console | ||
@@ -88,0 +89,0 @@ console.debug(`ping:${checkpoint}`, pdata); |
44648
310