aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/App.js2
-rw-r--r--vnext/src/api/index.js6
2 files changed, 4 insertions, 4 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');
};
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js
index 50a9d5f9..f2112dda 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
*/
/**