11 lines
502 B
JavaScript
11 lines
502 B
JavaScript
export default async function installDevtools() {
|
|
const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer');
|
|
|
|
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));
|
|
}
|