Closed PEM-- closed 8 years ago
Delay handling of back button till the router get initialized. On Safari (OSX and iOS), a onpopstate event is triggered while the route aren't defined yet. The function associated to this event uses a FlowRouter.go with no route declared.
onpopstate
FlowRouter.go
Fix tested on: Chrome (OSX & Android), Firefox, Safari (OSX & iOS).
Thanks.
Delay handling of back button till the router get initialized. On Safari (OSX and iOS), a
onpopstate
event is triggered while the route aren't defined yet. The function associated to this event uses aFlowRouter.go
with no route declared.Fix tested on: Chrome (OSX & Android), Firefox, Safari (OSX & iOS).