Merge pull request #16054 from Snuffleupagus/Driver-getDocument-cleanup
A little clean-up of the `getDocument` call in `test/driver.js`
This commit is contained in:
commit
9fac676796
@ -457,7 +457,6 @@ class Driver {
|
|||||||
|
|
||||||
this._log('Loading file "' + task.file + '"\n');
|
this._log('Loading file "' + task.file + '"\n');
|
||||||
|
|
||||||
const absoluteUrl = new URL(task.file, window.location).href;
|
|
||||||
try {
|
try {
|
||||||
let xfaStyleElement = null;
|
let xfaStyleElement = null;
|
||||||
if (task.enableXfa) {
|
if (task.enableXfa) {
|
||||||
@ -471,11 +470,10 @@ class Driver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const loadingTask = getDocument({
|
const loadingTask = getDocument({
|
||||||
url: absoluteUrl,
|
url: new URL(task.file, window.location),
|
||||||
password: task.password,
|
password: task.password,
|
||||||
cMapUrl: CMAP_URL,
|
cMapUrl: CMAP_URL,
|
||||||
standardFontDataUrl: STANDARD_FONT_DATA_URL,
|
standardFontDataUrl: STANDARD_FONT_DATA_URL,
|
||||||
disableRange: task.disableRange,
|
|
||||||
disableAutoFetch: !task.enableAutoFetch,
|
disableAutoFetch: !task.enableAutoFetch,
|
||||||
pdfBug: true,
|
pdfBug: true,
|
||||||
useSystemFonts: task.useSystemFonts,
|
useSystemFonts: task.useSystemFonts,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user