diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-13 15:48:13 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-13 15:48:13 -0500 |
commit | 594fc55d17f6e2b912cefec56a0217990673c04c (patch) | |
tree | 37ccb575c84c4a9a0221b5c01533c2114871f01a /src/client/views/pdf/PDFViewer.tsx | |
parent | d4f793d73070594086c72cf67a8b2b0a60b2af77 (diff) |
absolute pathname to pdfbox, improved check
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 253968443..41825cda7 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -137,7 +137,7 @@ export class PDFViewer extends DocAnnotatableComponent<IViewerProps, PdfDocument const properPath = Utils.prepend(`/files/pdfs/${matches[0]}`); console.log(properPath); console.log(`The two (url and proper path) ${url === properPath ? "were" : "were not equal"}`); - if (url !== properPath) { + if (!properPath.includes(url)) { const proto = Doc.GetProto(Document); proto[this.props.fieldKey] = new PdfField(properPath); proto[backup] = url; |