Skip to content

Commit 3c22780

Browse files
Update background.js
removed return true tests on various lines that were added 7/30/23 for testing
1 parent d224f2d commit 3c22780

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/extension/background.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ chrome.runtime.onConnect.addListener((port) => {
187187
break;
188188
}
189189
}
190-
return true // added 7/30/23
191190
});
192191

193192
// listen for message containing a snapshot from devtools and send it to contentScript -
@@ -410,7 +409,6 @@ chrome.tabs.onRemoved.addListener((tabId) => {
410409
delete tabsObj[tabId];
411410
delete reloaded[tabId];
412411
delete firstSnapshotReceived[tabId];
413-
return true; // added 7/30/23
414412
});
415413

416414
// when a new url is loaded on the same tab,
@@ -438,7 +436,6 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo) => {
438436
tabsObj[tabId] = createTabObj(changeInfo.title);
439437
}
440438
}
441-
return true; // added 7/30/23
442439
});
443440

444441
// when tab view is changed, put the tabid as the current tab
@@ -458,7 +455,6 @@ chrome.tabs.onActivated.addListener((info) => {
458455
}
459456
}
460457
});
461-
return true; // added 7/30/23
462458
});
463459

464460
// when reactime is installed
@@ -469,7 +465,6 @@ chrome.runtime.onInstalled.addListener(() => {
469465
title: 'Reactime',
470466
contexts: ['page', 'selection', 'image', 'link'],
471467
});
472-
return true; // added 7/30/23
473468
});
474469

475470
// when context menu is clicked, listen for the menuItemId,
@@ -484,5 +479,4 @@ chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
484479
url: chrome.runtime.getURL('panel.html'),
485480
};
486481
if (menuItemId === 'reactime') chrome.windows.create(options);
487-
return true; // added 7/30/23
488482
});

0 commit comments

Comments
 (0)