@openreplay/tracker-assist
Advanced tools
Comparing version 9.0.1 to 9.0.2-beta.1
@@ -34,3 +34,3 @@ import type { Properties } from 'csstype'; | ||
private readonly noSecureMode; | ||
readonly version = "9.0.1"; | ||
readonly version = "9.0.2-beta.1"; | ||
private socket; | ||
@@ -37,0 +37,0 @@ private peer; |
@@ -271,11 +271,15 @@ "use strict"; | ||
this.app.clearBuffers(); | ||
setTimeout(() => { | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }) | ||
.then(() => { | ||
var _a; | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]); | ||
}) | ||
.catch(e => app.debug.error(e)); | ||
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again | ||
}, 400); | ||
this.app.waitStatus(0) | ||
.then(() => { | ||
this.app.allowAppStart(); | ||
setTimeout(() => { | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }) | ||
.then(() => { | ||
var _a; | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]); | ||
}) | ||
.catch(e => app.debug.error(e)); | ||
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again | ||
}, 100); | ||
}); | ||
} | ||
@@ -282,0 +286,0 @@ }); |
@@ -9,3 +9,3 @@ "use strict"; | ||
// @ts-ignore | ||
if (app === null || !((_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.getUserMedia)) { | ||
if (app === null || !((_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.getUserMedia) || app.insideIframe) { | ||
return; | ||
@@ -12,0 +12,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const pkgVersion = "9.0.1"; | ||
export declare const pkgVersion = "9.0.2-beta.1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pkgVersion = void 0; | ||
exports.pkgVersion = "9.0.1"; | ||
exports.pkgVersion = "9.0.2-beta.1"; |
@@ -34,3 +34,3 @@ import type { Properties } from 'csstype'; | ||
private readonly noSecureMode; | ||
readonly version = "9.0.1"; | ||
readonly version = "9.0.2-beta.1"; | ||
private socket; | ||
@@ -37,0 +37,0 @@ private peer; |
@@ -269,11 +269,15 @@ import { connect, } from 'socket.io-client'; | ||
this.app.clearBuffers(); | ||
setTimeout(() => { | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }) | ||
.then(() => { | ||
var _a; | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]); | ||
}) | ||
.catch(e => app.debug.error(e)); | ||
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again | ||
}, 400); | ||
this.app.waitStatus(0) | ||
.then(() => { | ||
this.app.allowAppStart(); | ||
setTimeout(() => { | ||
this.app.start().then(() => { this.assistDemandedRestart = false; }) | ||
.then(() => { | ||
var _a; | ||
(_a = this.remoteControl) === null || _a === void 0 ? void 0 : _a.reconnect([id,]); | ||
}) | ||
.catch(e => app.debug.error(e)); | ||
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again | ||
}, 100); | ||
}); | ||
} | ||
@@ -280,0 +284,0 @@ }); |
@@ -7,3 +7,3 @@ import './_slim.js'; | ||
// @ts-ignore | ||
if (app === null || !((_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.getUserMedia)) { | ||
if (app === null || !((_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.getUserMedia) || app.insideIframe) { | ||
return; | ||
@@ -10,0 +10,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const pkgVersion = "9.0.1"; | ||
export declare const pkgVersion = "9.0.2-beta.1"; |
@@ -1,1 +0,1 @@ | ||
export const pkgVersion = "9.0.1"; | ||
export const pkgVersion = "9.0.2-beta.1"; |
{ | ||
"name": "@openreplay/tracker-assist", | ||
"description": "Tracker plugin for screen assistance through the WebRTC", | ||
"version": "9.0.1", | ||
"version": "9.0.2-beta.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "WebRTC", |
@@ -36,3 +36,4 @@ # OpenReplay Assist | ||
tracker.start(); | ||
// .start() returns a promise | ||
tracker.start().then(sessionData => ... ).catch(e => ... ) | ||
@@ -57,3 +58,4 @@ ``` | ||
useEffect(() => { // use componentDidMount in case of React Class Component | ||
tracker.start(); | ||
// .start() returns a promise | ||
tracker.start().then(sessionData => ... ).catch(e => ... ) | ||
}, []) | ||
@@ -60,0 +62,0 @@ //... |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
195538
4392
148
2