Skip to content

Commit f265760

Browse files
(added) added onHoverExit within reducer to send rtid payload back to our backend
Co-authored-by: Vincent Nguyen <[email protected]>
1 parent 4b30780 commit f265760

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/app/reducers/mainReducer.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ export default (state, action) => produce(state, draft => {
3939
};
4040

4141
switch (action.type) {
42+
case types.ON_HOVER_EXIT: {
43+
port.postMessage({
44+
action: 'onHoverExit',
45+
payload: action.payload,
46+
tabId: currentTab,
47+
})
48+
break;
49+
}
50+
4251
case types.ON_HOVER: {
4352
port.postMessage({
4453
action: 'onHover',
@@ -199,7 +208,6 @@ export default (state, action) => produce(state, draft => {
199208
break;
200209
}
201210
case types.INITIAL_CONNECT: {
202-
console.log(action.paylooad)
203211
const { payload } = action;
204212
Object.keys(payload).forEach(tab => {
205213
// check if tab exists in memory

0 commit comments

Comments
 (0)