diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-07-14 23:39:56 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-07-14 23:39:56 -0400 |
commit | b7dd805549c5cdb6b583312e5e9637f9f3e0ee93 (patch) | |
tree | 24217f91f213e57c503d226bae1475acb84c6a1d /src/mobile/ImageUpload.tsx | |
parent | baf446a5d65f8e0203eb3c7fb2f43d62a6997daa (diff) | |
parent | d7c6f0da00d4ed56d28f679d6f7de1002684864a (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/mobile/ImageUpload.tsx')
-rw-r--r-- | src/mobile/ImageUpload.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index bfc1738fc..a8f94b746 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -33,7 +33,7 @@ class Uploader extends React.Component { onClick = async () => { try { this.status = "initializing protos"; - await Docs.initProtos(); + await Docs.Prototypes.initialize(); let imgPrev = document.getElementById("img_preview"); if (imgPrev) { let files: FileList | null = inputRef.current!.files; @@ -53,7 +53,7 @@ class Uploader extends React.Component { const json = await res.json(); json.map(async (file: any) => { let path = window.location.origin + file; - var doc = Docs.ImageDocument(path, { nativeWidth: 200, width: 200, title: name }); + var doc = Docs.Create.ImageDocument(path, { nativeWidth: 200, width: 200, title: name }); this.status = "getting user document"; |