diff options
author | tschicke-brown <tyler_schicke@brown.edu> | 2019-03-18 14:07:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 14:07:18 -0400 |
commit | 7d5bb60662dc6a879df261f9eafeda89d6574cd7 (patch) | |
tree | 8275d70be6aa728de3fea9af76b9422464143227 /src/client/views/nodes/PDFBox.tsx | |
parent | 861614569c2d72e0ee9a6a698f3978f609a3b2bc (diff) | |
parent | be117e38a63a558684baa69f719787f11dfc3be3 (diff) |
Merge pull request #65 from browngraphicslab/authentication
Authentication
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index b9d260380..3a0ef2d32 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -17,6 +17,7 @@ import "./ImageBox.scss"; import "./PDFBox.scss"; import { Sticky } from './Sticky'; //you should look at sticky and annotation, because they are used here import React = require("react") +import { RouteStore } from "../../../server/RouteStore"; /** ALSO LOOK AT: Annotation.tsx, Sticky.tsx * This method renders PDF and puts all kinds of functionalities such as annotation, highlighting, @@ -441,7 +442,7 @@ export class PDFBox extends React.Component<FieldViewProps> { let pdfUrl = this.props.doc.GetT(this.props.fieldKey, PDFField); let xf = this.props.doc.GetNumber(KeyStore.NativeHeight, 0) / renderHeight; return <div className="pdfBox-contentContainer" key="container" style={{ transform: `scale(${xf}, ${xf})` }}> - <Document file={window.origin + "/corsProxy/" + `${pdfUrl}`}> + <Document file={window.origin + RouteStore.corsProxy + `/${pdfUrl}`}> <Measure onResize={this.setScaling}> {({ measureRef }) => <div className="pdfBox-page" ref={measureRef}> |