Skip to content

Commit 216199c

Browse files
authored
Merge pull request #5 from oslabs-beta/amy/addAxSnapshots
original code replaced snapshots in axSnapshots array, now they are pushed in
2 parents 12eabc3 + da5e69a commit 216199c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
345345
{},
346346
(response) => {
347347
// function pruning the ax tree
348-
tabsObj[tabId].axSnapshots = pruneAxTree(response.nodes);
348+
tabsObj[tabId].axSnapshots.push(pruneAxTree(response.nodes));
349+
350+
console.log(tabsObj[tabId].axSnapshots);
349351
chrome.debugger.detach({ tabId: tabId });
350352
},
351353
);

0 commit comments

Comments
 (0)