Skip to content

Commit 061ea4c

Browse files
committed
now console.logging deep copy of tabsObj[tabId] so that when object is opened in console after subsequent changes to tabsObj, the tabsObj[tabId] is shown with the values at the time of console.log
1 parent 6d1001f commit 061ea4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/background.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ chrome.runtime.onMessage.addListener(async (request, sender, sendResponse) => {
398398
break;
399399
}
400400
case 'recordSnap': {
401-
console.log('background.js: recordSnap: tabsObj[tabId]:', tabsObj[tabId]);
401+
console.log(
402+
'background.js: top of recordSnap: tabsObj[tabId]:',
403+
JSON.parse(JSON.stringify(tabsObj[tabId])),
404+
);
402405
function addAxSnap(snap) {
403406
const pruned = pruneAxTree(snap);
404407
tabsObj[tabId].axSnapshots.push(pruned);

0 commit comments

Comments
 (0)