wait to reload popup
This commit is contained in:
parent
260bc68251
commit
0df3208d45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue