Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Address changes of crash reporter in
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Sep 30, 2017
1 parent 5575c01 commit 4415943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ var check = function(channel = 'dev') {
debug('processing squirrel command `%s`', cmd);
var target = path.basename(process.execPath);

let userDataDirArg = '--user-data-dir=brave-' + channel
let userDataDirArg = '--user-data-dir-name=brave-' + channel

if (cmd === '--squirrel-install') {
if (channel === 'dev') {
run(['--createShortcut=' + target + ''], app.quit);
} else {
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir=brave-' + channel], app.quit);
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir-name=brave-' + channel], app.quit);
}
return true;
}
Expand All @@ -55,7 +55,7 @@ var check = function(channel = 'dev') {
if (channel === 'dev') {
run(['--createShortcut=' + target + ''], app.quit);
} else {
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir=brave-' + channel], app.quit);
run(['--createShortcut=' + target + '', '--process-start-args=' + '--user-data-dir-name=brave-' + channel], app.quit);
}
}
return true;
Expand Down

0 comments on commit 4415943

Please sign in to comment.