summaryrefslogtreecommitdiffstats
path: root/web/react/components/view_image.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-22 21:35:29 -0700
committerCorey Hulen <corey@hulen.com>2015-10-22 21:35:29 -0700
commit6a1934192f9e58b73bebdb4cfba555b281c81f13 (patch)
tree22f29ee70d3e87ec1cd0cfe50ba8442123105733 /web/react/components/view_image.jsx
parent5ecf45e109a5910959e0cc6927b826ce5a406a7d (diff)
parent7384b0791e54b0fd980ce8c321566c2c42289c02 (diff)
downloadchat-6a1934192f9e58b73bebdb4cfba555b281c81f13.tar.gz
chat-6a1934192f9e58b73bebdb4cfba555b281c81f13.tar.bz2
chat-6a1934192f9e58b73bebdb4cfba555b281c81f13.zip
Merge pull request #1129 from mattermost/PLT-44
PLT-44 Inital support for multi-tab multi-team login
Diffstat (limited to 'web/react/components/view_image.jsx')
-rw-r--r--web/react/components/view_image.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx
index bea6ce7a5..92d7cd835 100644
--- a/web/react/components/view_image.jsx
+++ b/web/react/components/view_image.jsx
@@ -197,7 +197,7 @@ export default class ViewImageModal extends React.Component {
}
fileInfo.path = Utils.getWindowLocationOrigin() + '/api/v1/files/get' + fileInfo.path;
- return fileInfo.path + '_preview.jpg';
+ return fileInfo.path + '_preview.jpg' + '?' + Utils.getSessionIndex();
}
// only images have proper previews, so just use a placeholder icon for non-images
@@ -306,7 +306,7 @@ export default class ViewImageModal extends React.Component {
width={width}
height={height}
>
- <source src={Utils.getWindowLocationOrigin() + '/api/v1/files/get' + filename} />
+ <source src={Utils.getWindowLocationOrigin() + '/api/v1/files/get' + filename + '?' + Utils.getSessionIndex()} />
</video>
);
} else {