Skip to content

Commit

Permalink
Use globalThis without .?
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Sep 21, 2023
1 parent 86083cd commit 73fb0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/seam/connect/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class SeamHttp {
const parseOptions = (options: SeamHttpOptions): Required<SeamHttpOptions> => {
const endpoint =
options.endpoint ??
globalThis?.process?.env?.['SEAM_ENDPOINT'] ??
globalThis?.process?.env?.['SEAM_API_URL'] ??
globalThis.process?.env?.['SEAM_ENDPOINT'] ??
globalThis.process?.env?.['SEAM_API_URL'] ??
'https://connect.getseam.com'

const apiKey =
Expand Down

0 comments on commit 73fb0e0

Please sign in to comment.