mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
parent
4694b6f9ca
commit
83fca7d9ff
|
@ -27,10 +27,6 @@ export class IntHistoryService {
|
|||
}
|
||||
|
||||
emit = () => {
|
||||
if (this.causedHashChange) {
|
||||
this.causedHashChange = false;
|
||||
return;
|
||||
}
|
||||
this._emiter.emit(EVENT, this.hash);
|
||||
};
|
||||
|
||||
|
@ -59,9 +55,8 @@ export class IntHistoryService {
|
|||
}
|
||||
return;
|
||||
}
|
||||
this.causedHashChange = true;
|
||||
if (IS_BROWSER) {
|
||||
window.location.hash = hash;
|
||||
window.history.pushState(null, '', window.location.href.split('#')[0] + '#' + hash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user