summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-03-20 18:22:31 -0700
committerDessalines <happydooby@gmail.com>2019-03-20 18:22:31 -0700
commitd52c16c123851e5ee8b5a6ee8c106615dab5081c (patch)
tree23dd0fc329e8f08c71dc6f10dd398b35d92c047c /ui/src/utils.ts
parent5b38bffb987fbabe049eaafed591fbf839cfda4c (diff)
Adding initial UI and Websocket server.
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
new file mode 100644
index 00000000..e141c681
--- /dev/null
+++ b/ui/src/utils.ts
@@ -0,0 +1,2 @@
+export let repoUrl = 'https://github.com/dessalines/rust-reddit-fediverse';
+export let wsUri = (window.location.protocol=='https:'&&'wss://'||'ws://')+window.location.host + '/service/ws/';