Skip to content

Commit e4ed574

Browse files
committed
commented out window.addeventlistener
1 parent 590409c commit e4ed574

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

extension/app/containers/MainContainer.jsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ class MainContainer extends Component {
1212

1313
componentDidMount() {
1414
// add a listener to capture messages from our backend
15-
window.addEventListener(
16-
'message',
17-
(event) => {
18-
// We only accept messages from ourselves
19-
if (event.source !== window) return;
20-
console.log(`Message received from backend: ${event.payload}`);
21-
},
22-
false,
23-
);
15+
// this should be in the inject script
16+
// window.addEventListener(
17+
// 'message',
18+
// (event) => {
19+
// // We only accept messages from ourselves
20+
// if (event.source !== window) return;
21+
// console.log(`Message received from backend: ${event.payload}`);
22+
// },
23+
// false,
24+
// );
2425

25-
// TESTING PURPOSES ONLY
26+
// MOCK DATA -- FOR TESTING PURPOSES ONLY
2627
this.setState({
2728
snapshots: [{ state: 'snapshot1' }, { state: 'snapshot2' }, { state: 'snapshot3' }],
2829
});

0 commit comments

Comments
 (0)