Skip to content
Snippets Groups Projects
Commit 9ee53b74 authored by Loïc Correnson's avatar Loïc Correnson Committed by Michele Alberti
Browse files

[dome] catch exception when loading dev-tools

parent 143f48c7
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,10 @@ function createPrimaryWindow()
// React Developper Tools
if (DEVEL)
installExtension(REACT_DEVELOPER_TOOLS,true);
installExtension(REACT_DEVELOPER_TOOLS,true)
.catch((err) => {
console.error('[Dome] Enable to install React dev-tools',err);
});
const cwd = process.cwd();
const wdir = cwd === '/' ? app.getPath('home') : cwd ;
const argv = stripElectronArgv(process.argv);
......
......@@ -8,5 +8,5 @@ export const REACT_DEVELOPER_TOOLS = undefined ;
// Shall not be used in non-development mode
export default function installExtension(_id) {
return Promise.reject();
return Promise.resolve();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment