mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
[PM-5189] Fixing a missed promise reference within OverlayBackground
This commit is contained in:
parent
9896882659
commit
498b4af3be
@ -173,5 +173,5 @@ export type InlineMenuListPortMessageHandlers = {
|
||||
export interface OverlayBackground {
|
||||
init(): Promise<void>;
|
||||
removePageDetails(tabId: number): void;
|
||||
updateOverlayCiphers(): void;
|
||||
updateOverlayCiphers(): Promise<void>;
|
||||
}
|
||||
|
@ -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(),
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user