Remove combineUrl and replace it with new URL.

This commit is contained in:
Prakash Palanisamy 2016-04-15 21:33:10 +05:30
parent e9dbb233aa
commit a25c29d98d
5 changed files with 7 additions and 78 deletions

View file

@ -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 {