1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 02:19:18 +00:00

fix: bypass router cache on back() in popout

This commit is contained in:
Andreas Coroiu
2025-09-17 14:11:06 +02:00
parent 92db4e9645
commit 23f9312434

View File

@@ -105,6 +105,11 @@ export class PopupRouterCacheService {
* Navigate back in history
*/
async back() {
if (!BrowserPopupUtils.inPopup(window)) {
this.location.back();
return;
}
const history = await this.state.update((prevState) =>
prevState ? prevState.slice(0, -1) : [],
);