aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/Import & Export/ImageUtils.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-27 05:50:15 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-27 05:50:15 -0500
commitc5d618538d4fd9669476dc7eb66ddd45783e5fa6 (patch)
tree79655ab3296881416ad78f9eb265a6df1e807f1e /src/client/util/Import & Export/ImageUtils.ts
parentb2aa0b80843e6e58f737e2937c45351d653255fa (diff)
nativewidth and nativeheight extension key fix and implemented UI to manually download a remotely hosted image
Diffstat (limited to 'src/client/util/Import & Export/ImageUtils.ts')
-rw-r--r--src/client/util/Import & Export/ImageUtils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/Import & Export/ImageUtils.ts b/src/client/util/Import & Export/ImageUtils.ts
index 2f4db0e17..ff909cc6b 100644
--- a/src/client/util/Import & Export/ImageUtils.ts
+++ b/src/client/util/Import & Export/ImageUtils.ts
@@ -22,8 +22,8 @@ export namespace ImageUtils {
} = await Networking.PostToServer("/inspectImage", { source });
document.exif = error || Docs.Get.DocumentHierarchyFromJson(data);
const proto = Doc.GetProto(document);
- proto.nativeWidth = nativeWidth;
- proto.nativeHeight = nativeHeight;
+ proto["data-nativeWidth"] = nativeWidth;
+ proto["data-nativeHeight"] = nativeHeight;
proto.contentSize = contentSize;
return data !== undefined;
};