wait to reload popup

This commit is contained in:
Kyle Spearrin 2019-03-13 22:32:52 -04:00
parent 260bc68251
commit 0df3208d45
1 changed files with 2 additions and 1 deletions

View File

@ -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);