From fee79d556dfffd4cf54725de9a405512e16e829b Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 27 Nov 2018 17:36:54 +0100 Subject: [PATCH] Merge pull request #4870 from hmelenok/next Add try, catch for IE11 as it breaks script execution --- lib/ui/src/modules/ui/configs/handle_routing.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui/src/modules/ui/configs/handle_routing.js b/lib/ui/src/modules/ui/configs/handle_routing.js index 1b4e10432730..82a8b3b859b2 100755 --- a/lib/ui/src/modules/ui/configs/handle_routing.js +++ b/lib/ui/src/modules/ui/configs/handle_routing.js @@ -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) {