Skip to content

Commit

Permalink
Fix check order
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Feb 5, 2025
1 parent 0cc2b2f commit cff68d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/js-sdk/src/api/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export const defaultHeaders = {
}

export function getEnvVar(name: string) {
if (typeof process === 'undefined') {
return ''
}

if (runtime === 'deno') {
// @ts-ignore
return Deno.env.get(name)
}

if (typeof process === 'undefined') {
return ''
}

return process.env[name]
}

0 comments on commit cff68d2

Please sign in to comment.