mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
wait to reload popup
This commit is contained in:
@@ -113,7 +113,8 @@ export class AppComponent implements OnInit {
|
|||||||
properties: { label: msg.label },
|
properties: { label: msg.label },
|
||||||
});
|
});
|
||||||
} else if (msg.command === 'reloadProcess') {
|
} else if (msg.command === 'reloadProcess') {
|
||||||
BrowserApi.reloadExtension(window, true);
|
// Wait to make sure background has reloaded first.
|
||||||
|
window.setTimeout(() => BrowserApi.reloadExtension(window, true), 2000);
|
||||||
} else {
|
} else {
|
||||||
msg.webExtSender = sender;
|
msg.webExtSender = sender;
|
||||||
this.broadcasterService.send(msg);
|
this.broadcasterService.send(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user