Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
9ee53b74
Commit
9ee53b74
authored
4 years ago
by
Loïc Correnson
Committed by
Michele Alberti
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[dome] catch exception when loading dev-tools
parent
143f48c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ivette/src/dome/src/main/dome.js
+4
-1
4 additions, 1 deletion
ivette/src/dome/src/main/dome.js
ivette/src/dome/src/misc/devtools.js
+1
-1
1 addition, 1 deletion
ivette/src/dome/src/misc/devtools.js
with
5 additions
and
2 deletions
ivette/src/dome/src/main/dome.js
+
4
−
1
View file @
9ee53b74
...
@@ -392,7 +392,10 @@ function createPrimaryWindow()
...
@@ -392,7 +392,10 @@ function createPrimaryWindow()
// React Developper Tools
// React Developper Tools
if
(
DEVEL
)
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
cwd
=
process
.
cwd
();
const
wdir
=
cwd
===
'
/
'
?
app
.
getPath
(
'
home
'
)
:
cwd
;
const
wdir
=
cwd
===
'
/
'
?
app
.
getPath
(
'
home
'
)
:
cwd
;
const
argv
=
stripElectronArgv
(
process
.
argv
);
const
argv
=
stripElectronArgv
(
process
.
argv
);
...
...
This diff is collapsed.
Click to expand it.
ivette/src/dome/src/misc/devtools.js
+
1
−
1
View file @
9ee53b74
...
@@ -8,5 +8,5 @@ export const REACT_DEVELOPER_TOOLS = undefined ;
...
@@ -8,5 +8,5 @@ export const REACT_DEVELOPER_TOOLS = undefined ;
// Shall not be used in non-development mode
// Shall not be used in non-development mode
export
default
function
installExtension
(
_id
)
{
export
default
function
installExtension
(
_id
)
{
return
Promise
.
re
ject
();
return
Promise
.
re
solve
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment