diff options
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/App.js | 2 | ||||
-rw-r--r-- | vnext/src/api/index.js | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js index 41c8849b2..80b235ac1 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'); }; diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 50a9d5f91..f2112ddaa 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -11,7 +11,7 @@ const apiBaseUrl = 'https://juick.com'; /** * @typedef {Object} User - * @property {string} uname + * @property {string=} uname * @property {number} uid * @property {number=} unreadCount * @property {string=} avatar @@ -23,8 +23,8 @@ const apiBaseUrl = 'https://juick.com'; /** * @typedef {Object} SecureUserProperties - * @property {string} hash - * @property {Token[]} tokens + * @property {string=} hash + * @property {Token[]=} tokens */ /** |