From 0e71c32f0ceefda99859aa1e37984985e9d14072 Mon Sep 17 00:00:00 2001 From: Ben De Meester Date: Fri, 2 Sep 2022 08:58:23 +0200 Subject: [PATCH] Update scrounger.html Skip empty tabs (resolved a crash on my end) --- scrounger.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scrounger.html b/scrounger.html index e2ed016..d182df4 100644 --- a/scrounger.html +++ b/scrounger.html @@ -149,6 +149,10 @@

Step 2: Extract URLs / Save Session Links

tabs = winds[i].tabs; for (j=0; j < tabs.length; j++) { //console.log('Window '+ (i+1) + ' Tab ' + (j+1)); + // Empty tabs (i.e., with no entries) are skipped + if(tabs[j].entries.length === 0) { + continue; + } if (txtPrivate.length == 0 && tabs[j].isPrivate) txtPrivate = ' (Private)'; else { if (tabs[j].hasOwnProperty('userContextId') && tabs[j].userContextId != 0) { @@ -1021,4 +1025,4 @@

Step 2: Extract URLs / Save Session Links

- \ No newline at end of file +