platform/electron/default-browser
Type Aliases
Section titled “Type Aliases”DefaultBrowserOutcome
Section titled “DefaultBrowserOutcome”DefaultBrowserOutcome =
"done"|"settings"|"failed"
Defined in: app/src/platform/electron/default-browser.ts:8
What making the browser the default did: done, or the system settings opened to finish.
Functions
Section titled “Functions”isDefaultBrowser()
Section titled “isDefaultBrowser()”isDefaultBrowser():
Promise<boolean>
Defined in: app/src/platform/electron/default-browser.ts:18
Whether the system opens web links with this browser: both http and https links. On Windows, the user’s choice in the system settings decides; elsewhere, the registered handler of each scheme.
Returns
Section titled “Returns”Promise<boolean>
makeDefaultBrowser()
Section titled “makeDefaultBrowser()”makeDefaultBrowser():
Promise<DefaultBrowserOutcome>
Defined in: app/src/platform/electron/default-browser.ts:48
Makes the browser the default browser. macOS asks the user to confirm; Windows lets only the user choose, so its settings open on the page of this browser, which the installer registered.
Returns
Section titled “Returns”Promise<DefaultBrowserOutcome>