Skip to content

Commit 3452062

Browse files
author
Dmitry Yadrikhinsky
committed
Disable loading extensions
1 parent a11c4a0 commit 3452062

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/main.dev.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,21 @@ if (
4343
const installExtensions = async () => {
4444
const installer = require('electron-devtools-installer');
4545
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
46-
const extensions = ['REACT_DEVELOPER_TOOLS'];
47-
48-
return installer
49-
.default(
50-
extensions.map((name) => installer[name]),
51-
forceDownload
52-
)
53-
.catch(console.log);
46+
const extensions = [
47+
'fmkadmapgofadopljbjfkapdkoienihi', // 'REACT_DEVELOPER_TOOLS',
48+
'pfgnfdagidkfgccljigdamigbcnndkod', // mobx-devtool
49+
];
50+
51+
return installer.default(extensions, forceDownload).catch(console.log);
5452
};
5553

5654
const createWindow = async () => {
5755
if (
5856
process.env.NODE_ENV === 'development' ||
5957
process.env.DEBUG_PROD === 'true'
6058
) {
61-
await installExtensions();
59+
// Doesnt work
60+
// await installExtensions();
6261
}
6362

6463
const RESOURCES_PATH = app.isPackaged

0 commit comments

Comments
 (0)