Skip to content

Commit

Permalink
fix: react devtools not loading (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored May 27, 2022
1 parent aa618f9 commit 678d4ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export async function setupDevTools(): Promise<void> {
} = 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);
Expand Down

0 comments on commit 678d4ad

Please sign in to comment.