1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00
This commit is contained in:
Daniel Riera
2025-06-17 14:31:11 -04:00
committed by GitHub
parent 82877e9b97
commit 05b34e9d00

View File

@@ -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;
}