mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(listeners) pop: change #hash
This commit is contained in:
parent
239f537742
commit
0a8ed76315
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue