1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

wait to reload popup

This commit is contained in:
Kyle Spearrin 2019-03-13 22:32:52 -04:00
parent 260bc68251
commit 0df3208d45

View File

@ -113,7 +113,8 @@ export class AppComponent implements OnInit {
properties: { label: msg.label },
});
} 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 {
msg.webExtSender = sender;
this.broadcasterService.send(msg);