diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-12 13:15:48 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-12 13:15:48 -0400 |
commit | 2dfc3abde7a353005e0f211adcb1ca993ce6cba1 (patch) | |
tree | c6d453b592efdc19c165153dfd92726fa5464179 /src/mobile/ImageUpload.tsx | |
parent | cae397d6bba9253295d0627c3839ec33e69946c5 (diff) | |
parent | bde549beec0b9644ff0e39585989b1a6795750eb (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"; |