You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ensure about:blank pages are never recorded! (#329)
- don't cache pageinfo if nothing added, use isEmptyPage() check
- exclude about:blank / no-timestamp pageinfo from being added
- bump to 0.15.9
- fixes#314
Copy file name to clipboardExpand all lines: src/recorder.ts
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ class Recorder {
368
368
}
369
369
370
370
// @ts-expect-error - TS2339 - Property '_cachePageInfo' does not exist on type 'Recorder'.
371
-
if(this._cachePageInfo){
371
+
if(!this.isEmptyPage(this._cachePageInfo)){
372
372
// @ts-expect-error - TS2339 - Property '_doAddPage' does not exist on type 'Recorder'. | TS2339 - Property '_cachePageInfo' does not exist on type 'Recorder'.
373
373
awaitthis._doAddPage(this._cachePageInfo);
374
374
// @ts-expect-error - TS2339 - Property '_cachePageInfo' does not exist on type 'Recorder'.
@@ -1107,10 +1107,9 @@ class Recorder {
1107
1107
1108
1108
// @ts-expect-error - TS7006 - Parameter 'currPage' implicitly has an 'any' type. | TS7006 - Parameter 'domSnapshot' implicitly has an 'any' type. | TS7006 - Parameter 'finished' implicitly has an 'any' type.
0 commit comments