fix(listeners) pop: change #hash

This commit is contained in:
coderaiser 2018-02-23 17:36:19 +02:00
parent 239f537742
commit 0a8ed76315

View file

@ -466,8 +466,8 @@ function unload() {
}
function pop() {
Events.add('popstate', (event) => {
const path = event.state.replace(FS, '');
Events.add('popstate', ({state}) => {
const path = (state || '').replace(FS, '');
if (!path)
return CloudCmd.route(location.hash);