router swallows excpetions on pushState
(not supported in iframes, used by builder)
This commit is contained in:
parent
4089b52c53
commit
901db64450
|
@ -42,7 +42,11 @@ export const screenRouter = (screens, onScreenSelected) => {
|
||||||
onScreenSelected(screens[fallback], store, _url)
|
onScreenSelected(screens[fallback], store, _url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
!url.state && history.pushState(_url, null, _url)
|
!url.state && history.pushState(_url, null, _url)
|
||||||
|
} catch (_) {
|
||||||
|
// ignoring an exception here as the builder runs an iframe, which does not like this
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function click(e) {
|
function click(e) {
|
||||||
|
|
Loading…
Reference in New Issue