fix(tracker): fix assist tarcker v
This commit is contained in:
parent
239ffb0e58
commit
7a5e2be138
5 changed files with 6 additions and 7 deletions
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker-assist",
|
||||
"description": "Tracker plugin for screen assistance through the WebRTC",
|
||||
"version": "7.0.1",
|
||||
"version": "7.0.2",
|
||||
"keywords": [
|
||||
"WebRTC",
|
||||
"assistance",
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"socket.io-client": "^4.7.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@openreplay/tracker": "^11.0.1"
|
||||
"@openreplay/tracker": "^11.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openreplay/tracker": "file:../tracker",
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export default class CallWindow {
|
|||
|
||||
const doc = iframe.contentDocument
|
||||
if (!doc) {
|
||||
app.debug.error('OpenReplay: CallWindow iframe document is not reachable.')
|
||||
logError('OpenReplay: CallWindow iframe document is not reachable.')
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,17 +8,16 @@ import Assist from './Assist.js'
|
|||
export default function(opts?: Partial<Options>) {
|
||||
return function(app: App | null, appOptions: { __DISABLE_SECURE_MODE?: boolean } = {}) {
|
||||
// @ts-ignore
|
||||
if (app === null || !navigator?.mediaDevices?.getUserMedia) { // 93.04% browsers
|
||||
if (app === null || !navigator?.mediaDevices?.getUserMedia) {
|
||||
return
|
||||
}
|
||||
if (!app.checkRequiredVersion || !app.checkRequiredVersion('REQUIRED_TRACKER_VERSION')) {
|
||||
console.warn('OpenReplay Assist: couldn\'t load. The minimum required version of @openreplay/tracker@REQUIRED_TRACKER_VERSION is not met')
|
||||
return
|
||||
}
|
||||
app.notify.log('OpenReplay Assist initializing.')
|
||||
|
||||
const assist = new Assist(app, opts, appOptions.__DISABLE_SECURE_MODE)
|
||||
app.debug.log(assist)
|
||||
return assist
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export const pkgVersion = '7.0.1'
|
||||
export const pkgVersion = '7.0.2'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue