import installExtension , { REACT_DEVELOPER_TOOLS , REDUX_DEVTOOLS } from 'electron-devtools-installer' ; const { app } = require ( 'electron' ) ; export default function installDevtools ( ) { return app . whenReady ( ) . then ( ( ) => Promise . all ( [ REACT_DEVELOPER_TOOLS , REDUX_DEVTOOLS ] . map ( ( extension ) => installExtension ( extension ) . then ( ( name ) => console . log ( `Added Extensions:  ${ name }` ) ) . catch ( ( err ) => console . log ( 'An error occurred adding an extension: ' , err ) ) ) ) ) ; }