summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-18 15:48:47 -0400
committerGitHub <noreply@github.com>2017-07-18 15:48:47 -0400
commita350f4dc0754e1aeabb64bd712ce05f7c59cfa60 (patch)
tree6712921b7bfdb1a73e2584f1a975eaf2ad5ccd60 /webapp
parent41969ae66c2d140b004e6dbced597749f34aedf8 (diff)
downloadchat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.tar.gz
chat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.tar.bz2
chat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.zip
Fix PDF preview urls (#6976)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/pdf_preview.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/pdf_preview.jsx b/webapp/components/pdf_preview.jsx
index 790355561..09913afcf 100644
--- a/webapp/components/pdf_preview.jsx
+++ b/webapp/components/pdf_preview.jsx
@@ -84,7 +84,7 @@ export default class PDFPreview extends React.Component {
success: false
});
- PDFJS.getDocument(window.mm_config.SiteURL + props.fileUrl).then(this.onDocumentLoad);
+ PDFJS.getDocument(props.fileUrl).then(this.onDocumentLoad);
}
onDocumentLoad(pdf) {