Skip to content

Commit

Permalink
Moar question marks 👊
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed May 22, 2023
1 parent 8658f07 commit 5749720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/call_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const anyGlobal = global as any;
type Constructable<T> = new (e: string) => T;
// require("eventsource") for Node and React Native environment
let EventSource: Constructable<EventSource> = anyGlobal.EventSource ??
anyGlobal.window.EventSource ??
anyGlobal.window?.EventSource ??
require("eventsource");

/**
Expand Down

0 comments on commit 5749720

Please sign in to comment.