mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-04 18:37:45 +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 {
|
export interface OverlayBackground {
|
||||||
init(): Promise<void>;
|
init(): Promise<void>;
|
||||||
removePageDetails(tabId: number): void;
|
removePageDetails(tabId: number): void;
|
||||||
updateOverlayCiphers(): void;
|
updateOverlayCiphers(): Promise<void>;
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ export default class TabsBackground {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.overlayBackground.updateOverlayCiphers();
|
await this.overlayBackground.updateOverlayCiphers();
|
||||||
|
|
||||||
if (this.main.onUpdatedRan) {
|
if (this.main.onUpdatedRan) {
|
||||||
return;
|
return;
|
||||||
@ -121,7 +121,10 @@ export default class TabsBackground {
|
|||||||
* for the current tab. Also updates the overlay ciphers.
|
* for the current tab. Also updates the overlay ciphers.
|
||||||
*/
|
*/
|
||||||
private updateCurrentTabData = async () => {
|
private updateCurrentTabData = async () => {
|
||||||
this.overlayBackground.updateOverlayCiphers();
|
await Promise.all([
|
||||||
await Promise.all([this.main.refreshBadge(), this.main.refreshMenu()]);
|
this.main.refreshBadge(),
|
||||||
|
this.main.refreshMenu(),
|
||||||
|
this.overlayBackground.updateOverlayCiphers(),
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user