change(tracker): 4.1.2
This commit is contained in:
parent
2fdbd408c2
commit
8931e118a0
3 changed files with 8 additions and 3 deletions
|
|
@ -25,7 +25,8 @@ function processMutationAndState(
|
|||
const _table = encoder.commit();
|
||||
for (let key in _table) app.send(Messages.OTable(key, _table[key]));
|
||||
app.send(Messages.Vuex(_mutation, _state));
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
encoder.clear();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "4.1.1",
|
||||
"version": "4.1.2",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -304,8 +304,12 @@ export default class App {
|
|||
this.debug.error('OpenReplay error: Unable to build session URL')
|
||||
return undefined
|
||||
}
|
||||
const ingest = this.options.ingestPoint
|
||||
const isSaas = ingest === DEFAULT_INGEST_POINT
|
||||
|
||||
return this.options.ingestPoint.replace(/ingest$/, `${projectID}/session/${sessionID}`)
|
||||
const projectPath = isSaas ? ingest.replace('api', 'app') : ingest
|
||||
|
||||
return projectPath.replace(/ingest$/, `${projectID}/session/${sessionID}`)
|
||||
}
|
||||
|
||||
getHost(): string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue