mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-17 02:10:39 +03:00
parent
4694b6f9ca
commit
83fca7d9ff
|
@ -27,10 +27,6 @@ export class IntHistoryService {
|
||||||
}
|
}
|
||||||
|
|
||||||
emit = () => {
|
emit = () => {
|
||||||
if (this.causedHashChange) {
|
|
||||||
this.causedHashChange = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this._emiter.emit(EVENT, this.hash);
|
this._emiter.emit(EVENT, this.hash);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -59,9 +55,8 @@ export class IntHistoryService {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.causedHashChange = true;
|
|
||||||
if (IS_BROWSER) {
|
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