aboutsummaryrefslogtreecommitdiff
path: root/src/mobile
diff options
context:
space:
mode:
authorSam Wilkins <abdullah_ahmed@brown.edu>2019-07-23 19:12:15 -0400
committerSam Wilkins <abdullah_ahmed@brown.edu>2019-07-23 19:12:15 -0400
commit0ef6d9b5a3f90552562f4a6392967887d8805cc3 (patch)
treea40f95ecf9ae19d836a7bd324ed650d78fc7c3c0 /src/mobile
parent7d9958f23b2b69f59bb108b33ec014b52ad41c99 (diff)
parent86971952237b8bd01a23b52db662740126bd8477 (diff)
merge
Diffstat (limited to 'src/mobile')
-rw-r--r--src/mobile/ImageUpload.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx
index a8f94b746..33a615cbf 100644
--- a/src/mobile/ImageUpload.tsx
+++ b/src/mobile/ImageUpload.tsx
@@ -11,6 +11,7 @@ import { listSpec } from '../new_fields/Schema';
import { List } from '../new_fields/List';
import { observer } from 'mobx-react';
import { observable } from 'mobx';
+import { Utils } from '../Utils';
@@ -57,7 +58,7 @@ class Uploader extends React.Component {
this.status = "getting user document";
- const res = await rp.get(DocServer.prepend(RouteStore.getUserDocumentId));
+ const res = await rp.get(Utils.prepend(RouteStore.getUserDocumentId));
if (!res) {
throw new Error("No user id returned");
}
@@ -104,6 +105,8 @@ class Uploader extends React.Component {
}
+DocServer.init(window.location.protocol, window.location.hostname, 4321, "image upload");
+
ReactDOM.render((
<Uploader />
),