tracker add more canvas checks, release 14.0.6
This commit is contained in:
parent
e7fe260c81
commit
dbd065aec7
3 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# 14.0.6
|
||||
|
||||
- support feature off toggle for feature flags and usability testing
|
||||
- additional checks for canvas snapshots
|
||||
|
||||
# 14.0.5
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "14.0.5",
|
||||
"version": "14.0.6",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -104,6 +104,13 @@ class CanvasRecorder {
|
|||
this.fileExt,
|
||||
(blob) => {
|
||||
if (!blob) return
|
||||
if (!this.snapshots[id]) {
|
||||
return this.app.debug.warn(
|
||||
'Canvas not present in snapshots after capture:',
|
||||
this.snapshots,
|
||||
id,
|
||||
)
|
||||
}
|
||||
this.snapshots[id].images.push({ id: this.app.timestamp(), data: blob })
|
||||
if (this.snapshots[id].images.length > 9) {
|
||||
this.sendSnaps(this.snapshots[id].images, id, this.snapshots[id].createdAt)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue