Skip to content

Commit 70f03ee

Browse files
committed
remove non mac open browser commands
1 parent 8fd635c commit 70f03ee

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/examples/client/simpleOAuthClient.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,7 @@ class InteractiveOAuthClient {
112112
const platform = process.platform;
113113
let command: string;
114114

115-
if (platform === 'darwin') {
116-
command = `open "${url}"`;
117-
} else if (platform === 'win32') {
118-
command = `start "" "${url}"`;
119-
} else {
120-
command = `xdg-open "${url}"`;
121-
}
115+
command = `open "${url}"`;
122116

123117
exec(command, (error) => {
124118
if (error) {

0 commit comments

Comments
 (0)