Skip to content

platform/electron/default-browser

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.

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.

Promise<boolean>


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.

Promise<DefaultBrowserOutcome>