/* eslint-disable no-console */ import installExtension, { REDUX_DEVTOOLS, REACT_DEVELOPER_TOOLS, } from "electron-devtools-installer"; export default async function installDevExtensions() { const extensions = [REDUX_DEVTOOLS, REACT_DEVELOPER_TOOLS]; return Promise.all( extensions.map((ext) => installExtension(ext, { loadExtensionOptions: { allowFileAccess: true }, forceDownload: false, }) .then((name) => console.log(`Added Extension: ${name}`)) .catch((err) => console.log("AN ERROR OCCURED: ", err)) ) ); }