Skip to content

Commit

Permalink
fix #1331 added proxy call instead of original
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla committed Dec 12, 2016
1 parent 2f0b144 commit 044ae91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/plugins/print/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
const {connect} = require('react-redux');
const {compose} = require('redux');

var ConfigUtils = require('../../utils/ConfigUtils');
const {Input} = require('react-bootstrap');

const {setPrintParameter, changePrintZoomLevel, changeMapPrintPreview, printCancel} =
Expand Down Expand Up @@ -128,7 +128,7 @@ const PrintSubmit = connect((state) => ({
}))(require('../../components/print/PrintSubmit'));

const PrintPreview = connect((state) => ({
url: state.print && state.print.pdfUrl,
url: state.print && ConfigUtils.getProxyUrl(state.print.pdfUrl),
scale: state.controls && state.controls.print && state.controls.print.viewScale || 0.5,
currentPage: state.controls && state.controls.print && state.controls.print.currentPage || 1,
pages: state.controls && state.controls.print && state.controls.print.pages || 1
Expand Down

0 comments on commit 044ae91

Please sign in to comment.