@@ -7,7 +7,6 @@ const firstSnapshotReceived = {};
7
7
// there will be the same number of objects in here as there are reactime tabs open for each user application being worked on
8
8
const tabsObj = { } ;
9
9
10
- console . log ( 'hello from background' ) ;
11
10
function createTabObj ( title ) {
12
11
// update tabsObj
13
12
return {
@@ -342,7 +341,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
342
341
343
342
// when tab is closed, remove the tabid from the tabsObj
344
343
chrome . tabs . onRemoved . addListener ( ( tabId ) => {
345
- console . log ( 'tab is deleted.' ) ;
344
+
346
345
// tell devtools which tab to delete
347
346
if ( portsArr . length > 0 ) {
348
347
portsArr . forEach ( ( bg ) =>
@@ -361,7 +360,7 @@ chrome.tabs.onRemoved.addListener((tabId) => {
361
360
362
361
// when a new url is loaded on the same tab, this remove the tabid from the tabsObj, recreate the tab and inject the script
363
362
chrome . tabs . onUpdated . addListener ( ( tabId , changeInfo ) => {
364
- console . log ( 'new site loaded.' ) ;
363
+
365
364
// check if the tab title changed to see if tab need to restart
366
365
if ( changeInfo && tabsObj [ tabId ] ) {
367
366
if ( changeInfo . title && changeInfo . title !== tabsObj [ tabId ] . title ) {
@@ -388,7 +387,7 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo) => {
388
387
389
388
// when tab view is changed, put the tabid as the current tab
390
389
chrome . tabs . onActivated . addListener ( ( info ) => {
391
- console . log ( 'tab view has changed' ) ;
390
+
392
391
// tell devtools which tab to be the current
393
392
if ( portsArr . length > 0 ) {
394
393
portsArr . forEach ( ( bg ) =>
@@ -413,7 +412,7 @@ chrome.runtime.onInstalled.addListener(() => {
413
412
// when context menu is clicked, listen for the menuItemId,
414
413
// if user clicked on reactime, open the devtools window
415
414
chrome . contextMenus . onClicked . addListener ( ( { menuItemId } ) => {
416
- console . log ( 'inspect clicked reactime' ) ;
415
+
417
416
const options = {
418
417
type : 'panel' ,
419
418
left : 0 ,
0 commit comments