aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/views/nodes/ImageBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 1bd1b80a7..a2291c7cf 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -163,7 +163,7 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD
}
choosePath(url: URL) {
- if (url.protocol === "data")
+ if (url.protocol === "data" || url.href.indexOf(window.location.origin) === -1)
return url.href;
let ext = path.extname(url.href);
return url.href.replace(ext, this._curSuffix + ext);