Remove combineUrl
and replace it with new URL
.
This commit is contained in:
parent
e9dbb233aa
commit
a25c29d98d
5 changed files with 7 additions and 78 deletions
|
@ -332,9 +332,7 @@ var Driver = (function DriverClosure() {
|
|||
|
||||
this._log('Loading file "' + task.file + '"\n');
|
||||
|
||||
var absoluteUrl = pdfjsSharedUtil.combineUrl(window.location.href,
|
||||
task.file);
|
||||
|
||||
var absoluteUrl = new URL(task.file, window.location).href;
|
||||
PDFJS.disableRange = task.disableRange;
|
||||
PDFJS.disableAutoFetch = !task.enableAutoFetch;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue