Skip to content

Commit a21d85a

Browse files
committed
Removed console.log - preparing for merge to master
1 parent 408b9fb commit a21d85a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/app/components/App.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class App extends Component {
8383
// If the user paused the recording session, we return
8484
const { isRecording } = this.state;
8585
if (!isRecording) return;
86-
console.log('got new data');
86+
8787
const newData = {
8888
action: msg.action,
8989
state: msg.state,
@@ -104,11 +104,13 @@ class App extends Component {
104104
isPlayingIndex: state.data.length,
105105
filteredData: [...state.filteredData, newData],
106106
eventTimes: [...state.eventTimes, eventTime],
107+
...newData,
107108
}));
108109
} else {
109110
this.setState(state => ({
110111
data: [...state.data, newData],
111112
isPlayingIndex: state.data.length,
113+
...newData,
112114
}));
113115
}
114116
});

src/browser/chrome/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function handleRequest(request) {
5353

5454
sendMessageToContent(parseAndGenerate(syncRequest.responseText));
5555

56-
return { redirectUrl: 'javascript:' };
56+
return { redirectUrl: 'data:application/json; charset=utf-8,' };
5757
}
5858
}
5959

@@ -106,3 +106,4 @@ function notifyPorts(msg, portName) {
106106
}
107107
}
108108
}
109+

src/browser/chrome/extension.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
// We get an object { type: 'TIMETRAVEL', direction: 'forward' }
99
window.postMessage(msg);
1010
});
11-
console.log('inject library');
11+
1212
window.addEventListener('message', (msg) => {
1313
// When our injected scripts post messages (from useReducer in 'react'),
1414
// we receive it here and send it to our app loaded on the DevTool.
15-
if (msg.data.type === 'DISPATCH') console.log('Got msg from useReducer: ', msg.data.data);
1615
if (msg.data.type === 'DISPATCH') port.postMessage(msg.data.data);
1716
});
1817
}());

0 commit comments

Comments
 (0)