From a300c4e5040e975cdcd7367a1345335d52ff6aad Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 18 Mar 2019 01:00:09 -0400 Subject: Debugger changes --- src/mobile/ImageUpload.tsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index ac46cb4fc..292a3a035 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -9,6 +9,7 @@ import { Server } from '../client/Server'; import { Opt, Field } from '../fields/Field'; import { ListField } from '../fields/ListField'; import { KeyStore } from '../fields/KeyStore'; +import { ImageField } from '../fields/ImageField'; @@ -41,6 +42,11 @@ const onFileLoad = (file: any) => { let path = window.location.origin + file runInAction(() => { var doc: Document = Documents.ImageDocument(path, { nativeWidth: 200, width: 200 }) + doc.GetTAsync(KeyStore.Data, ImageField, (i) => { + if (i) { + document.getElementById("message")!.innerText = i.Data.href; + } + }) Server.GetField(pendingDocId, (res: Opt) => { if (res) { if (res instanceof Document) { @@ -67,6 +73,7 @@ ReactDOM.render(( {/* */} +
), document.getElementById('root') ); \ No newline at end of file -- cgit v1.2.3-70-g09d2