Skip to content

Commit 493bf41

Browse files
(add) added onHover and relevant payload (rtid) inside of the reducer
1 parent 2be3aba commit 493bf41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/reducers/mainReducer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default (state, action) => produce(state, draft => {
4242
case types.ON_HOVER: {
4343
port.postMessage({
4444
action: 'onHover',
45-
payload: 'payload from Reducer ON_HOVER',
45+
payload: action.payload,
4646
tabId: currentTab,
4747
})
4848
break;
@@ -199,6 +199,7 @@ export default (state, action) => produce(state, draft => {
199199
break;
200200
}
201201
case types.INITIAL_CONNECT: {
202+
console.log(action.paylooad)
202203
const { payload } = action;
203204
Object.keys(payload).forEach(tab => {
204205
// check if tab exists in memory

0 commit comments

Comments
 (0)