router swallows excpetions on pushState

(not supported in iframes, used by builder)
This commit is contained in:
Michael Shanks 2020-02-18 13:10:57 +00:00
parent 56c25fee90
commit a58a061df0
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,11 @@ export const screenRouter = (screens, onScreenSelected) => {
onScreenSelected(screens[fallback], store, _url)
}
!url.state && history.pushState(_url, null, _url)
try {
!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) {