fix(tracker): 4.1.3: static build (next/nuxt etc) fix
This commit is contained in:
parent
43434f892a
commit
15549050a0
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "4.1.2",
|
||||
"version": "4.1.3",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export const IS_FIREFOX = IN_BROWSER && navigator.userAgent.match(/firefox|fxios
|
|||
export const MAX_STR_LEN = 1e5
|
||||
|
||||
const navigationStart: number | false =
|
||||
(IN_BROWSER && performance.timing.navigationStart) || performance.timeOrigin
|
||||
IN_BROWSER && (performance.timing.navigationStart || performance.timeOrigin)
|
||||
// performance.now() is buggy in some browsers
|
||||
export const timestamp: () => number =
|
||||
IN_BROWSER && performance.now() && navigationStart
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue