Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit fa87150

Browse files
authored
Give RNEventSource a default (empty) options param
Underlying EventSource fails when not passed options
1 parent dcf2d3d commit fa87150

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import EventSource from './EventSource'
22

33
class RNEventSource {
4-
constructor(url, options) {
4+
constructor(url, options={}) {
55
this.url = url;
66
this.options = options;
77
this.eventSource = new EventSource(url, options);

0 commit comments

Comments
 (0)