1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

[PM-5189] Fixing a missed promise reference within OverlayBackground

This commit is contained in:
Cesar Gonzalez
2024-06-26 08:29:53 -05:00
parent 9896882659
commit 498b4af3be
2 changed files with 7 additions and 4 deletions

View File

@@ -173,5 +173,5 @@ export type InlineMenuListPortMessageHandlers = {
export interface OverlayBackground {
init(): Promise<void>;
removePageDetails(tabId: number): void;
updateOverlayCiphers(): void;
updateOverlayCiphers(): Promise<void>;
}

View File

@@ -94,7 +94,7 @@ export default class TabsBackground {
return;
}
this.overlayBackground.updateOverlayCiphers();
await this.overlayBackground.updateOverlayCiphers();
if (this.main.onUpdatedRan) {
return;
@@ -121,7 +121,10 @@ export default class TabsBackground {
* for the current tab. Also updates the overlay ciphers.
*/
private updateCurrentTabData = async () => {
this.overlayBackground.updateOverlayCiphers();
await Promise.all([this.main.refreshBadge(), this.main.refreshMenu()]);
await Promise.all([
this.main.refreshBadge(),
this.main.refreshMenu(),
this.overlayBackground.updateOverlayCiphers(),
]);
};
}