We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ae712 commit 6ed2126Copy full SHA for 6ed2126
src/extension/background.js
@@ -270,8 +270,7 @@ chrome.runtime.onConnect.addListener((port) => {
270
// resets hierarchy to page last state recorded
271
...tabsObj[tabId].snapshots[0],
272
};
273
- tabsObj[tabId].axSnapshots =
274
- tabsObj[tabId].axSnapshots[tabsObj[tabId].axSnapshots.length - 1];
+ tabsObj[tabId].axSnapshots = tabsObj[tabId].axSnapshots[0];
275
tabsObj[tabId].hierarchy.axSnapshot = tabsObj[tabId].axSnapshots[0]; //what about other hierarchy properties? Shouldn't those be reset as well?
276
// other hierarchy properties do not have to be set because you maintain the root history node
277
tabsObj[tabId].currLocation = tabsObj[tabId].hierarchy; // resets currLocation to page last state recorded
0 commit comments