Skip to content

Commit b30274e

Browse files
author
Dmitry Yadrikhinsky
committed
[DevTools] Try to fix loading extensions
1 parent 3452062 commit b30274e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main.dev.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,20 @@ const installExtensions = async () => {
4444
const installer = require('electron-devtools-installer');
4545
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
4646
const extensions = [
47-
'fmkadmapgofadopljbjfkapdkoienihi', // 'REACT_DEVELOPER_TOOLS',
47+
// 'REACT_DEVELOPER_TOOLS',
48+
'fmkadmapgofadopljbjfkapdkoienihi',
4849
'pfgnfdagidkfgccljigdamigbcnndkod', // mobx-devtool
4950
];
5051

51-
return installer.default(extensions, forceDownload).catch(console.log);
52+
return installer
53+
.default(
54+
extensions.map((name) => installer[name]),
55+
{
56+
forceDownload,
57+
loadExtensionOptions: { allowFileAccess: true },
58+
}
59+
)
60+
.catch(console.log);
5261
};
5362

5463
const createWindow = async () => {

0 commit comments

Comments
 (0)