listen for browser hash changes and reload recipe
This commit is contained in:
parent
388709037d
commit
21557e0dcc
@ -828,7 +828,7 @@ class App {
|
||||
|
||||
|
||||
/**
|
||||
* Handler for the history popstate event.
|
||||
* Handler for history popstate and hashchange events.
|
||||
* Reloads parameters from the URL.
|
||||
*
|
||||
* @param {event} e
|
||||
|
||||
@ -125,6 +125,7 @@ class Manager {
|
||||
window.addEventListener("focus", this.window.windowFocus.bind(this.window));
|
||||
window.addEventListener("statechange", this.app.stateChange.bind(this.app));
|
||||
window.addEventListener("popstate", this.app.popState.bind(this.app));
|
||||
window.addEventListener("hashchange", this.app.popState.bind(this.app));
|
||||
window.addEventListener("message", this.input.handlePostMessage.bind(this.input));
|
||||
|
||||
// Controls
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user