aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/App.js')
-rw-r--r--vnext/src/App.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index 41c8849b..80b235ac 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -58,7 +58,7 @@ export default function App() {
if ('EventSource' in window) {
const eventParams = { hash: hash };
let url = new URL(`https://juick.com/api/events?${qs.stringify(eventParams)}`);
- es = new EventSource(url);
+ es = new EventSource(url.toString());
es.onopen = () => {
console.log('online');
};