From 70f03ee648353898c288651e84304869981ac3dd Mon Sep 17 00:00:00 2001 From: ihrpr Date: Wed, 21 May 2025 21:27:42 +0100 Subject: [PATCH] remove non mac open browser commands --- src/examples/client/simpleOAuthClient.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/examples/client/simpleOAuthClient.ts b/src/examples/client/simpleOAuthClient.ts index 75f5653a..8d3759c1 100644 --- a/src/examples/client/simpleOAuthClient.ts +++ b/src/examples/client/simpleOAuthClient.ts @@ -112,13 +112,7 @@ class InteractiveOAuthClient { const platform = process.platform; let command: string; - if (platform === 'darwin') { - command = `open "${url}"`; - } else if (platform === 'win32') { - command = `start "" "${url}"`; - } else { - command = `xdg-open "${url}"`; - } + command = `open "${url}"`; exec(command, (error) => { if (error) {