mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
PM-21160 (#15125)
This commit is contained in:
@@ -105,9 +105,11 @@ export class PopupRouterCacheService {
|
|||||||
* Navigate back in history
|
* Navigate back in history
|
||||||
*/
|
*/
|
||||||
async back() {
|
async back() {
|
||||||
await this.state.update((prevState) => (prevState ? prevState.slice(0, -1) : []));
|
const history = await this.state.update((prevState) =>
|
||||||
|
prevState ? prevState.slice(0, -1) : [],
|
||||||
|
);
|
||||||
|
|
||||||
if (this.hasNavigated) {
|
if (this.hasNavigated && history.length) {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user