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
- add screenshot and PDF archiving checkboxes to settings
- if enabled, save 'urn:view' and 'urn:thumbnail', scaled via offscreencanvas with same dimensions as Browsertrix
- if enabled, save PDF with background using screen media mode
// @ts-expect-error - TS2339 - Property '_doAddResource' does not exist on type 'Recorder'.
1022
+
awaitthis._doAddResource(fullData);
1023
+
1024
+
1025
+
// @ts-expect-error - TS2339 - Property '_doAddResource' does not exist on type 'Recorder'.
1026
+
awaitthis._doAddResource(thumbData);
1027
+
}
1028
+
933
1029
asyncgetFullText(finishing=false){
934
1030
// @ts-expect-error - TS2339 - Property 'pageInfo' does not exist on type 'Recorder'. | TS2339 - Property 'pageInfo' does not exist on type 'Recorder'.
935
1031
if(!this.pageInfo?.url){
@@ -1189,6 +1285,14 @@ class Recorder {
1189
1285
// @ts-expect-error - TS2339 - Property 'pageInfo' does not exist on type 'Recorder'.
1190
1286
constpageInfo=this.pageInfo;
1191
1287
1288
+
if(this.archiveScreenshots){
1289
+
awaitthis.saveScreenshot(pageInfo);
1290
+
}
1291
+
1292
+
if(this.archivePDF){
1293
+
awaitthis.savePDF(pageInfo);
1294
+
}
1295
+
1192
1296
const[domSnapshot,favIcon]=awaitPromise.all([
1193
1297
this.getFullText(),
1194
1298
// @ts-expect-error - TS2339 - Property 'getFavIcon' does not exist on type 'Recorder'.
0 commit comments