Skip to content

Commit

Permalink
pr updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpellizzari committed Mar 8, 2017
1 parent 63f168b commit 16fa556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/scripts/utils/router-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function getRouter(dispatch, initialState) {
if (storageState) {
window.location.hash = `!/state/${storageState}`;
const parsedState = JSON.parse(decodeURL(storageState));
mergedState = Object.assign(initialState, parsedState);
mergedState = { ...initialState, ...parsedState };
}

page('/', () => {
Expand Down
3 changes: 3 additions & 0 deletions client/app/scripts/utils/web-api-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ export function teardownWebsockets() {
if (socket) {
socket.onerror = null;
socket.onclose = null;
socket.onmessage = null;
socket.onopen = null;
socket.close();
socket = null;
currentOptions = null;
}
}

0 comments on commit 16fa556

Please sign in to comment.