Skip to content

Commit

Permalink
Missing user-data-dir-name change and address
Browse files Browse the repository at this point in the history
brave@7317c70#diff-957f46bacb200ef966023deb70f7be5cR13

fix brave#11791

Auditors: @bsclifton, @bbondy

Test Plan:
a. npm start without setting CHANNEL=dev env

b. package and build installer
b.1 install Brave by the installer
  • Loading branch information
darkdh authored and syuan100 committed Nov 9, 2017
1 parent 4d745b6 commit cd098b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/windowsInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ if (process.platform === 'win32') {
process.exit(0)
}

const userDataDirSwitch = '--user-data-dir=brave-' + channel
if (channel !== 'dev' && !process.argv.includes(userDataDirSwitch)) {
const userDataDirSwitch = '--user-data-dir-name=brave-' + channel
if (channel && channel !== 'dev' && !process.argv.includes(userDataDirSwitch)) {
if (cmd === '--squirrel-firstrun') {
app.relaunch({args: [userDataDirSwitch, '--relaunch']})
} else {
Expand Down

0 comments on commit cd098b4

Please sign in to comment.