Skip to content

Commit

Permalink
Post parent message when game is over.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Jun 18, 2020
1 parent b54bdb6 commit 7b8bbe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default (state = {}, action) => {
case "PAUSE_GAME":
return { ...state, paused: true };
case "GAME_OVER":
windowPostMessage({
action: action.type,
});
return { ...state, paused: true };
case "RESUME_GAME":
return { ...state, paused: false };
Expand Down

0 comments on commit 7b8bbe5

Please sign in to comment.