From 678d4ad02e544b79ef17917da1b85563b94d7ddb Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 27 May 2022 04:51:03 +0200 Subject: [PATCH] fix: react devtools not loading (#1082) --- src/main/devtools.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/devtools.ts b/src/main/devtools.ts index 44a788c6c1..f268aa5942 100644 --- a/src/main/devtools.ts +++ b/src/main/devtools.ts @@ -15,7 +15,9 @@ export async function setupDevTools(): Promise { } = require('electron-devtools-installer'); try { - const react = await installExtension(REACT_DEVELOPER_TOOLS); + const react = await installExtension(REACT_DEVELOPER_TOOLS, { + loadExtensionOptions: { allowFileAccess: true }, + }); console.log(`installDevTools: Installed ${react}`); } catch (error) { console.warn(`installDevTools: Error occurred:`, error);