mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
PM-21160 (#15125)
This commit is contained in:
@@ -105,9 +105,11 @@ export class PopupRouterCacheService {
|
||||
* Navigate back in history
|
||||
*/
|
||||
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();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user