mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
fix: bypass router cache on back() in popout (#16453)
This commit is contained in:
@@ -105,6 +105,11 @@ export class PopupRouterCacheService {
|
|||||||
* Navigate back in history
|
* Navigate back in history
|
||||||
*/
|
*/
|
||||||
async back() {
|
async back() {
|
||||||
|
if (!BrowserPopupUtils.inPopup(window)) {
|
||||||
|
this.location.back();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const history = await this.state.update((prevState) =>
|
const history = await this.state.update((prevState) =>
|
||||||
prevState ? prevState.slice(0, -1) : [],
|
prevState ? prevState.slice(0, -1) : [],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user