fix(tracker): fix getsessionURL

This commit is contained in:
nick-delirium 2023-09-06 09:28:50 +02:00
parent 5618d104f1
commit 0ece13064a
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
# 9.0.7
- fix for `getSessionURL` method
# 9.0.6
- added `tokenUrlMatcher` option to network settings, allowing to ingest session token header to custom allowed urls

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "9.0.6",
"version": "9.0.7",
"keywords": [
"logging",
"replay"

View file

@ -418,7 +418,7 @@ export default class App {
const ingest = this.options.ingestPoint
const isSaas = /api\.openreplay\.com/.test(ingest)
const projectPath = isSaas ? 'https://openreplay.com/ingest' : ingest
const projectPath = isSaas ? 'https://app.openreplay.com/ingest' : ingest
const url = projectPath.replace(/ingest$/, `${projectID}/session/${sessionID}`)