Skip to content

Commit 97be0f9

Browse files
committed
console cleaning
1 parent ec06236 commit 97be0f9

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/app/containers/ActionContainer.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ function ActionContainer() {
3535
componentName: obj.stateSnapshot.children[0].name,
3636
componentData: JSON.stringify(obj.stateSnapshot.children[0].componentData) === '{}' ? '' : obj.stateSnapshot.children[0].componentData,
3737
};
38-
console.log('displayArray obj.name: ' + obj.name)
39-
console.log('displayArray obj.branch: ' + obj.branch)
40-
console.log('break')
4138
hierarchyArr.push(newObj);
4239
}
4340
if (obj.children) {

src/extension/background.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const firstSnapshotReceived = {};
77
// there will be the same number of objects in here as there are reactime tabs open for each user application being worked on
88
const tabsObj = {};
99

10-
console.log('hello from background');
1110
function createTabObj(title) {
1211
// update tabsObj
1312
return {
@@ -342,7 +341,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
342341

343342
// when tab is closed, remove the tabid from the tabsObj
344343
chrome.tabs.onRemoved.addListener((tabId) => {
345-
console.log('tab is deleted.');
344+
346345
// tell devtools which tab to delete
347346
if (portsArr.length > 0) {
348347
portsArr.forEach((bg) =>
@@ -361,7 +360,7 @@ chrome.tabs.onRemoved.addListener((tabId) => {
361360

362361
// when a new url is loaded on the same tab, this remove the tabid from the tabsObj, recreate the tab and inject the script
363362
chrome.tabs.onUpdated.addListener((tabId, changeInfo) => {
364-
console.log('new site loaded.');
363+
365364
// check if the tab title changed to see if tab need to restart
366365
if (changeInfo && tabsObj[tabId]) {
367366
if (changeInfo.title && changeInfo.title !== tabsObj[tabId].title) {
@@ -388,7 +387,7 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo) => {
388387

389388
// when tab view is changed, put the tabid as the current tab
390389
chrome.tabs.onActivated.addListener((info) => {
391-
console.log('tab view has changed');
390+
392391
// tell devtools which tab to be the current
393392
if (portsArr.length > 0) {
394393
portsArr.forEach((bg) =>
@@ -413,7 +412,7 @@ chrome.runtime.onInstalled.addListener(() => {
413412
// when context menu is clicked, listen for the menuItemId,
414413
// if user clicked on reactime, open the devtools window
415414
chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
416-
console.log('inspect clicked reactime');
415+
417416
const options = {
418417
type: 'panel',
419418
left: 0,

src/extension/contentScript.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let firstMessage = true;
55
window.addEventListener('message', msg => { // runs automatically every second
66
// window listener picks up the message it sends, so we should filter
77
// messages sent by contentscript
8-
// console.log("msg source in content script: " + Object.entries(msg.source));
8+
99
if (firstMessage) {
1010
// one-time request tells the background script that the tab has reloaded
1111
chrome.runtime.sendMessage({ action: 'tabReload' });
@@ -14,7 +14,6 @@ window.addEventListener('message', msg => { // runs automatically every second
1414

1515
// post initial Message to background.js
1616
const { action }: { action: string } = msg.data;
17-
console.log("action in addEvent Listener: ", action);
1817
if (action === 'recordSnap') {
1918
// this is firing on page load
2019
chrome.runtime.sendMessage(msg.data);

0 commit comments

Comments
 (0)