2019-03-20 20:09:58 +01:00
|
|
|
export default async function installDevtools() {
|
2019-05-07 23:38:29 +02:00
|
|
|
const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer');
|
2019-03-20 20:09:58 +01:00
|
|
|
|
|
|
|
await installExtension(REACT_DEVELOPER_TOOLS)
|
|
|
|
.then(name => console.log(`Added Extension: ${name}`))
|
|
|
|
.catch(err => console.log('An error occurred: ', err));
|
|
|
|
|
|
|
|
await installExtension(REDUX_DEVTOOLS)
|
|
|
|
.then(name => console.log(`Added Extension: ${name}`))
|
|
|
|
.catch(err => console.log('An error occurred: ', err));
|
|
|
|
}
|