Skip to content

Commit 927aa82

Browse files
committed
-updated content script matching path, was looking for https when it should be http for localhost, which breaks the app.
-removed console logs from background.js and componentMap
1 parent 813f967 commit 927aa82

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ export default function ComponentMap({
425425
node.depth === 0
426426
? 'compMapRootText'
427427
: node.children
428-
? 'compMapParentText'
429-
: 'compMapChildText'
428+
? 'compMapParentText'
429+
: 'compMapChildText'
430430
}
431431
dy='.33em'
432432
fontSize='20px'
@@ -440,7 +440,6 @@ export default function ComponentMap({
440440
</Group>
441441
);
442442
})}
443-
{console.log(aspect)}
444443
</Group>
445444
)}
446445
</Tree>

src/extension/background.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ chrome.runtime.onConnect.addListener((port) => {
270270
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
271271
// AUTOMATIC MESSAGE SENT BY CHROME WHEN CONTENT SCRIPT IS FIRST LOADED: set Content
272272
if (request.type === 'SIGN_CONNECT') {
273-
console.log('sign connected!!');
274273
return true;
275274
}
276275
const tabTitle = sender.tab.title;
@@ -362,7 +361,6 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
362361
break;
363362
}
364363
case 'recordSnap': {
365-
console.log('recordSnap. current tabsobj', tabsObj)
366364
const sourceTab = tabId;
367365
tabsObj[tabId].webMetrics = metrics;
368366
if (!firstSnapshotReceived[tabId]) {
@@ -502,7 +500,6 @@ chrome.runtime.onInstalled.addListener(() => {
502500
// As of chrome manifest V3, background.js is a 'service worker', which does not have access to the DOM or to the native 'window' method, so we use chrome.windows.getCurrent(callback)
503501
// chrome.windows.getCurrent returns a promise (asynchronous), so all resulting functionality must happen in the callback function, or it will run before 'invokedScreen' variables have been captured.
504502
chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
505-
506503
// // this was a test to see if I could dynamically set the left property to be the 0 origin of the invoked DISPLAY (as opposed to invoked window).
507504
// // this would allow you to split your screen, keep the browser open on the right side, and reactime always opens at the top left corner.
508505
// // however it does not tell you which display is the one that invoked it, just gives the array of all available displays. Depending on your monitor setup, it may differ. Leaving for future iterators
@@ -528,12 +525,11 @@ chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
528525
// JR 1.9.23: this code fixes the no target error on load by triggering chrome tab reload before the panel spins up.
529526
// It does not solve the root issue, which was deeply researched during v23 but we ran out of time to solve. Please see the readme for more information.
530527
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
531-
console.log('onContext click tab info', tabs, new Date().toLocaleString());
532528
if (tabs.length) {
533529
const invokedTab = tabs[0];
534530
const invokedTabId = invokedTab.id;
535531
const invokedTabTitle = invokedTab.title;
536-
chrome.tabs.reload(invokedTabId)
532+
chrome.tabs.reload(invokedTabId);
537533
}
538534
});
539535
});

src/extension/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"content_scripts": [
1616
{
17-
"matches": ["https://localhost/*"],
17+
"matches": ["http://localhost/*"],
1818
"js": ["bundles/content.bundle.js"]
1919
}
2020
],

0 commit comments

Comments
 (0)