Skip to content

Commit

Permalink
Merge pull request #4870 from hmelenok/next
Browse files Browse the repository at this point in the history
Add try, catch for IE11 as it breaks script execution
  • Loading branch information
ndelangen authored and shilman committed Dec 3, 2018
1 parent 0e390a6 commit fee79d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ui/src/modules/ui/configs/handle_routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export function changeUrl(clientStore, usePush) {
if (!data.selectedKind) return;

const state = getUrlState(data);
history[usePush ? 'pushState' : 'replaceState'](state, '', state.url);
try {
history[usePush ? 'pushState' : 'replaceState'](state, '', state.url);
} catch (e) {
// do nothing
}
}

export function updateStore(queryParams, actions) {
Expand Down

0 comments on commit fee79d5

Please sign in to comment.