diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-07-11 18:45:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 18:45:57 -0400 |
| commit | aa17690d3c484e08b35cc6356c73f00eaa5e0df5 (patch) | |
| tree | 6039850b3ff1f463d8ac97ab0fe5a71deb2d6e82 /src/mobile/ImageUpload.tsx | |
| parent | aeb0521e8ad8f1efc8c3a39af9eb5443c5368453 (diff) | |
| parent | 5eb76c1a2da4e7c8371cb62c39ca84d2f79804d3 (diff) | |
Merge pull request #198 from browngraphicslab/layout_refactor
Layout refactor
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"; |
