MCPcopy Index your code
hub / github.com/reactide/reactide / installExtensions

Function installExtensions

main/main.js:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 reactEntry: ''
24};
25const installExtensions = async () => {
26 devtron.install();
27 const installer = require('electron-devtools-installer');
28 const extensions = ['REACT_DEVELOPER_TOOLS', 'REDUX_DEVTOOLS'];
29 const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
30 for (const name of extensions) {
31 try {
32 await installer.default(installer[name], forceDownload);
33 } catch (e) {
34 console.log(`Error installing ${name} extension: ${e.message}`);
35 }
36 }
37};
38
39 const nativeImage = require('electron').nativeImage;
40 let image = nativeImage.createFromPath(__dirname + '/icons/icon.icns');

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected