Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
9ee53b74
Commit
9ee53b74
authored
Jul 20, 2020
by
Loïc Correnson
Committed by
Michele Alberti
Jul 21, 2020
Browse files
[dome] catch exception when loading dev-tools
parent
143f48c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ivette/src/dome/src/main/dome.js
View file @
9ee53b74
...
...
@@ -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
);
...
...
ivette/src/dome/src/misc/devtools.js
View file @
9ee53b74
...
...
@@ -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
.
re
ject
();
return
Promise
.
re
solve
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment