aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-03-02 14:43:48 -0500
committerbobzel <zzzman@gmail.com>2022-03-02 14:43:48 -0500
commit398a50bc1d7e77691620a4a6752fd38d4bb391b0 (patch)
tree42f56a2bc7cc1d661c3dfa61d49cc472fffb553c /src/client/views/nodes/ImageBox.tsx
parent35f0c9940d0ea7c0cb37c711557454b77ac038ad (diff)
upgraded to typescript 4.6.2
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-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 5d122ed54..112325cc3 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -188,7 +188,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
if (url.href.indexOf(window.location.origin) === -1) return Utils.CorsProxy(url.href);
if (!/\.(png|jpg|jpeg|gif|webp)$/.test(lower)) return url.href; //Why is this here
- const ext = url.href.replace(/.*\./, "");//path.extname(url.href);
+ const ext = "." + url.href.replace(/.*\./, "");//path.extname(url.href);
return url.href.replace(ext, this._curSuffix + ext);
}