Skip to content

Commit b75b3bf

Browse files
committed
debugging currLocation
1 parent 7d44d2a commit b75b3bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension/background.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function countCurrName(rootNode, name) {
9999
function changeCurrLocation(tabObj, rootNode, index, name) {
100100
// index comes from the app's main reducer to locate the correct current location on tabObj
101101
// check if current node has the index wanted
102+
console.log('DEBUG >>> rootNode.index: ', rootNode.index);
103+
console.log('DEBUG >>> index: ', index);
102104
if (rootNode.index === index) {
103105
console.log('DEBUG >>> jump index: ', index);
104106
console.log('DEBUG >>> jump name: ', name);
@@ -253,6 +255,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
253255
const { persist, empty } = tabsObj[tabId].mode;
254256
switch (action) {
255257
case 'jumpToSnap': {
258+
console.log('DEBUG >>> in jumpToSnap action!')
256259
changeCurrLocation(tabsObj[tabId], tabsObj[tabId].hierarchy, index, name);
257260
isRecordAfterJump = true;
258261
break;

0 commit comments

Comments
 (0)