Skip to content

Commit

Permalink
fix XMLHttpRequest url when loading pdf files
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Feb 8, 2018
1 parent 771acd6 commit a33dd5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ function jsonToHTML(params) {
if (params.showModal || params.onLoadingStart || __WEBPACK_IMPORTED_MODULE_0__browser__["a" /* default */].isIE()) {
var req = new window.XMLHttpRequest();
req.addEventListener('load', send(params, printFrame));
req.open('GET', window.location.origin + params.printable, true);
req.open('GET', window.location.origin + '/' + params.printable, true);
req.send();
} else {
send(params, printFrame);
Expand Down
Loading

0 comments on commit a33dd5b

Please sign in to comment.