fix typo xhr onprogress
This commit is contained in:
parent
e5d79fd0da
commit
a373baeff5
2
pdf.js
2
pdf.js
@ -127,7 +127,7 @@ function getPdf(arg, callback) {
|
|||||||
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
|
xhr.expected = (document.URL.indexOf('file:') === 0) ? 0 : 200;
|
||||||
|
|
||||||
if ('progress' in params)
|
if ('progress' in params)
|
||||||
xhr.onprogrss = params.progress || undefined;
|
xhr.onprogress = params.progress || undefined;
|
||||||
|
|
||||||
if ('error' in params)
|
if ('error' in params)
|
||||||
xhr.onerror = params.error || undefined;
|
xhr.onerror = params.error || undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user