Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Prakhar Agarwal
purr-data
Commits
827f99c2
Commit
827f99c2
authored
May 25, 2021
by
Prakhar Agarwal
🎯
Browse files
process.platform
parent
9806bcc6
Pipeline
#3638
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_shortcuts.js
View file @
827f99c2
"
use strict
"
;
var
cmd_or_ctrl
=
process
.
platform
===
"
darwin
"
?
"
Cmd
"
:
"
Ctrl
"
;
var
cmd_or_ctrl
=
(
process
.
platform
===
"
darwin
"
)
?
"
Cmd
"
:
"
Ctrl
"
;
exports
.
menu
=
{
"
new
"
:
{
key
:
"
N
"
,
modifiers
:
cmd_or_ctrl
},
...
...
pd/nw/pdgui.js
View file @
827f99c2
...
...
@@ -7,7 +7,10 @@ var pd_engine_id;
function
is_webapp
(){
return
typeof
process
.
platform
===
"
undefined
"
;
if
(
typeof
(
Module
)
===
"
undefined
"
){
return
false
;
}
return
true
;
}
exports
.
is_webapp
=
is_webapp
;
...
...
Write
Preview
Markdown
is supported
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