1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

update popup router cache when navigating after file upload (#17694)

This commit is contained in:
Jordan Aasen
2025-12-11 15:47:26 -08:00
committed by GitHub
parent d779304285
commit 2c4034ec7c
2 changed files with 3 additions and 3 deletions

View File

@@ -120,8 +120,8 @@ export class PopupRouterCacheService {
/** /**
* Navigate back in history * Navigate back in history
*/ */
async back() { async back(updateCache = false) {
if (!BrowserPopupUtils.inPopup(window)) { if (!updateCache && !BrowserPopupUtils.inPopup(window)) {
this.location.back(); this.location.back();
return; return;
} }

View File

@@ -51,6 +51,6 @@ export class AttachmentsV2Component {
/** Navigate the user back to the edit screen after uploading an attachment */ /** Navigate the user back to the edit screen after uploading an attachment */
async navigateBack() { async navigateBack() {
await this.popupRouterCacheService.back(); await this.popupRouterCacheService.back(true);
} }
} }