mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-18 08:20:10 -07:00
12 lines
453 B
TypeScript
12 lines
453 B
TypeScript
export default async function installExtensions() {
|
|
// eslint-disable-next-line global-require
|
|
const installer = require('electron-devtools-installer');
|
|
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
|
|
const extensions = ['REACT_DEVELOPER_TOOLS', 'REDUX_DEVTOOLS'];
|
|
|
|
return Promise.all(
|
|
extensions.map((name) => installer.default(installer[name], forceDownload))
|
|
// eslint-disable-next-line no-console
|
|
).catch(console.log);
|
|
}
|