From 91968bafadff2d3584d941335918120d4097b3ce Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Wed, 18 Jan 2017 21:24:16 +0800 Subject: [PATCH] Fix installExtensions (#662) We should waiting for extensions installation, otherwise content script will not correctly load on renderer process when we use `forceDownload`. --- app/main.development.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.development.js b/app/main.development.js index 3737a89..b9f2134 100644 --- a/app/main.development.js +++ b/app/main.development.js @@ -35,7 +35,7 @@ const installExtensions = async () => { // TODO: Use async interation statement. // Waiting on https://github.com/tc39/proposal-async-iteration // Promises will fail silently, which isn't what we want in development - Promise + return Promise .all(extensions.map(name => installer.default(installer[name], forceDownload))) .catch(console.log); }