Skip to content

Commit 72ae712

Browse files
committed
made minor changes
1 parent 4d4bba5 commit 72ae712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension/background.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ chrome.runtime.onConnect.addListener((port) => {
273273
tabsObj[tabId].axSnapshots =
274274
tabsObj[tabId].axSnapshots[tabsObj[tabId].axSnapshots.length - 1];
275275
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
276277
tabsObj[tabId].currLocation = tabsObj[tabId].hierarchy; // resets currLocation to page last state recorded
277278
tabsObj[tabId].index = 1; //reset index
278279
tabsObj[tabId].currParent = 0; // reset currParent

0 commit comments

Comments
 (0)