Skip to content

Commit

Permalink
Outstanding move :pawn:
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Nov 15, 2023
1 parent f08025e commit 89a6f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/horizon/call_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ let EventSource: Constructable<EventSource>;
try {
EventSource = anyGlobal.EventSource ??
anyGlobal.window?.EventSource ??
require("eventsource");
// @ts-ignore
(__non_webpack_require__ ?? require)("eventsource");
} catch (e: any) {
console.warn(
'⚠️ No EventSource provider found: either polyfill it ' +
Expand Down

0 comments on commit 89a6f39

Please sign in to comment.