From 0df3208d4574904d991beb45897ff38430c4e307 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Mar 2019 22:32:52 -0400 Subject: [PATCH] wait to reload popup --- src/popup/app.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index ec48656da7..46ff36ab27 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -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);