Skip to content

Commit 0e489f2

Browse files
committed
fixing reactime running on non local host bug
1 parent 73412e9 commit 0e489f2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/app/components/BarGraph.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,14 @@ const BarGraph = props => {
7777
scroll: true,
7878
});
7979
const keys = Object.keys(data.componentData);
80+
console.log('this is data in barGraph.tsx: ', data);
81+
console.log('these are the data\'s keys: ', keys);
8082

8183
// data accessor (used to generate scales) and formatter (add units for on hover box)
82-
const getSnapshotId = (d: snapshot) => d.snapshotId;
84+
const getSnapshotId = (d: snapshot) => {
85+
console.log('snapshot object here: ', d);
86+
return d.snapshotId;
87+
};
8388
const formatSnapshotId = id => `Snapshot ID: ${id}`;
8489
const formatRenderTime = time => `${time} ms `;
8590

src/extension/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"content_scripts": [
1515
{
16-
"matches": ["<all_urls>"],
16+
"matches": ["http://localhost/*"],
1717
"js": ["bundles/content.bundle.js"]
1818
}
1919
],

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"outDir": "./src/extension/build/bundles/",
44
"module": "es6",
5+
//"noImplicitAny": true,
56
"target": "es5",
67
"jsx": "react",
78
"removeComments": true,

0 commit comments

Comments
 (0)