diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-07-18 15:48:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 15:48:47 -0400 |
commit | a350f4dc0754e1aeabb64bd712ce05f7c59cfa60 (patch) | |
tree | 6712921b7bfdb1a73e2584f1a975eaf2ad5ccd60 /webapp/components/pdf_preview.jsx | |
parent | 41969ae66c2d140b004e6dbced597749f34aedf8 (diff) | |
download | chat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.tar.gz chat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.tar.bz2 chat-a350f4dc0754e1aeabb64bd712ce05f7c59cfa60.zip |
Fix PDF preview urls (#6976)
Diffstat (limited to 'webapp/components/pdf_preview.jsx')
-rw-r--r-- | webapp/components/pdf_preview.jsx | 2 |
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) { |