@openreplay/tracker
Advanced tools
Comparing version 14.0.12 to 14.0.13
@@ -60,2 +60,10 @@ 'use strict'; | ||
} | ||
const canAccessTop = () => { | ||
try { | ||
return Boolean(window.top); | ||
} | ||
catch { | ||
return false; | ||
} | ||
}; | ||
class API { | ||
@@ -78,3 +86,3 @@ constructor(options) { | ||
req.send(JSON.stringify({ | ||
trackerVersion: '14.0.12', | ||
trackerVersion: '14.0.13', | ||
projectKey: this.options.projectKey, | ||
@@ -109,6 +117,7 @@ doNotTrack, | ||
if (!utils_js_1.IN_BROWSER || !processOptions(options)) { | ||
console.error('OpenReplay: tracker called in a non-browser environment or with invalid options'); | ||
return; | ||
} | ||
if (window.__OPENREPLAY__ || | ||
(!this.crossdomainMode && (0, utils_js_1.inIframe)() && window.top?.__OPENREPLAY__)) { | ||
(!this.crossdomainMode && (0, utils_js_1.inIframe)() && canAccessTop() && window.top?.__OPENREPLAY__)) { | ||
console.error('OpenReplay: one tracker instance has been initialised already'); | ||
@@ -115,0 +124,0 @@ return; |
@@ -296,2 +296,3 @@ import type { Options as WebworkerOptions } from '../../common/interaction.js'; | ||
uploadOfflineRecording(): Promise<void>; | ||
prevOpts: StartOptions; | ||
private _start; | ||
@@ -298,0 +299,0 @@ restartCanvasTracking: () => void; |
@@ -6,3 +6,2 @@ import Observer from './observer.js'; | ||
syntheticObserve(rootNodeId: number, doc: Document): void; | ||
disconnect(): void; | ||
} |
@@ -296,2 +296,3 @@ import type { Options as WebworkerOptions } from '../../common/interaction.js'; | ||
uploadOfflineRecording(): Promise<void>; | ||
prevOpts: StartOptions; | ||
private _start; | ||
@@ -298,0 +299,0 @@ restartCanvasTracking: () => void; |
@@ -6,3 +6,2 @@ import Observer from './observer.js'; | ||
syntheticObserve(rootNodeId: number, doc: Document): void; | ||
disconnect(): void; | ||
} |
{ | ||
"name": "@openreplay/tracker", | ||
"description": "The OpenReplay tracker main package", | ||
"version": "14.0.12", | ||
"version": "14.0.13", | ||
"keywords": [ | ||
@@ -37,4 +37,3 @@ "logging", | ||
"clean": "rm -Rf build && rm -Rf lib && rm -Rf cjs", | ||
"build:common": "tsc -b src/common", | ||
"build": "yarn run clean && yarn build:common && rollup --config rollup.config.js", | ||
"build": "yarn run clean && rollup --config rollup.config.js", | ||
"lint-front": "lint-staged", | ||
@@ -41,0 +40,0 @@ "test": "jest --coverage=false", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14148
1265986