Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
9e204a1f
Commit
9e204a1f
authored
Nov 07, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sudo
parent
ba902b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.js
index.js
+5
-5
No files found.
index.js
View file @
9e204a1f
...
@@ -37,12 +37,12 @@ autoUpdater.on('update-downloaded', (event)=> {
...
@@ -37,12 +37,12 @@ autoUpdater.on('update-downloaded', (event)=> {
function
handleElevate
()
{
function
handleElevate
()
{
if
(
process
.
argv
[
1
]
==
'
-e
'
)
{
if
(
process
.
argv
[
1
]
==
'
-e
'
)
{
app
.
dock
.
hide
();
if
(
process
.
platform
==
'
darwin
'
)
{
const
os
=
require
(
'
os
'
);
app
.
dock
.
hide
(
);
const
readline
=
require
(
'
readline
'
);
}
process
.
send
=
(
message
,
sendHandle
,
options
,
callback
)
=>
process
.
stdout
.
write
(
JSON
.
stringify
(
message
)
+
os
.
EOL
,
callback
);
process
.
send
=
(
message
,
sendHandle
,
options
,
callback
)
=>
process
.
stdout
.
write
(
JSON
.
stringify
(
message
)
+
require
(
'
os
'
)
.
EOL
,
callback
);
process
.
stdin
.
on
(
'
end
'
,
()
=>
process
.
emit
(
'
disconnect
'
));
process
.
stdin
.
on
(
'
end
'
,
()
=>
process
.
emit
(
'
disconnect
'
));
re
adline
.
createInterface
({
input
:
process
.
stdin
}).
on
(
'
line
'
,
(
line
)
=>
process
.
emit
(
'
message
'
,
JSON
.
parse
(
line
)));
re
quire
(
'
readline
'
)
.
createInterface
({
input
:
process
.
stdin
}).
on
(
'
line
'
,
(
line
)
=>
process
.
emit
(
'
message
'
,
JSON
.
parse
(
line
)));
require
(
"
./
"
+
process
.
argv
[
2
]);
require
(
"
./
"
+
process
.
argv
[
2
]);
return
true
;
return
true
;
}
}
...
...
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