fix(auth): correct ternary indentation in openBrowser
This commit is contained in:
@@ -92,7 +92,7 @@ export function startCallbackServer(timeoutMs: number): Promise<CallbackServer>
|
|||||||
export function openBrowser(url: string): void {
|
export function openBrowser(url: string): void {
|
||||||
const cmd = process.platform === 'win32' ? 'start'
|
const cmd = process.platform === 'win32' ? 'start'
|
||||||
: process.platform === 'darwin' ? 'open'
|
: process.platform === 'darwin' ? 'open'
|
||||||
: 'xdg-open';
|
: 'xdg-open';
|
||||||
try {
|
try {
|
||||||
spawn(cmd, [url], { detached: true, stdio: 'ignore' }).unref();
|
spawn(cmd, [url], { detached: true, stdio: 'ignore' }).unref();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user