summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_preview.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/file_preview.jsx')
-rw-r--r--web/react/components/file_preview.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/file_preview.jsx b/web/react/components/file_preview.jsx
index fdd12feec..7c1db3e10 100644
--- a/web/react/components/file_preview.jsx
+++ b/web/react/components/file_preview.jsx
@@ -24,7 +24,7 @@ module.exports = React.createClass({
if (filename.indexOf("/api/v1/files/get") != -1) {
filename = filename.split("/api/v1/files/get")[1];
}
- filename = window.location.origin + "/api/v1/files/get" + filename;
+ filename = utils.getWindowLocationOrigin() + "/api/v1/files/get" + filename;
if (type === "image") {
previews.push(