This repository was archived by the owner on Dec 11, 2019. It is now read-only.
File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ if (process.platform === 'darwin') {
55
55
return false
56
56
}
57
57
58
- const isDefaultBrowser = ( ) => {
59
- try {
60
- const defaultProtocols = [ 'http' , 'https' ]
61
- return defaultProtocols . every ( p => app . isDefaultProtocolClient ( p ) )
62
- } catch ( e ) {
63
- return false
64
- }
65
- }
66
-
67
58
const installBraveCore = ( ) => {
68
59
// get path to the bundled brave-core binary
69
60
const installerPath = getBraveCoreInstallerPath ( )
@@ -111,12 +102,6 @@ if (process.platform === 'darwin') {
111
102
// launch into freshly installed brave-core and append argument expected in:
112
103
// https://github.com/brave/brave-browser/issues/1545
113
104
let openCmd = `open -a "${ installedPath } /${ appName } /" --args --upgrade-from-muon`
114
- if ( isDefaultBrowser ( ) ) {
115
- // if user has the Muon version of Brave as their default browser, let's
116
- // ask the user to make Brave Core their new default. Passing this extra
117
- // argument will prompt the user to ensure they agree with the choice
118
- openCmd += ' --make-default-browser'
119
- }
120
105
console . log ( 'Launching brave-core' )
121
106
execSync ( openCmd )
122
107
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments