mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
IE9 does not need onreadystatechange
This commit is contained in:
parent
7e145c1228
commit
cb59b31927
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ var Util = PDFJS.Util = (function UtilClosure() {
|
||||||
var loaded = false;
|
var loaded = false;
|
||||||
script.setAttribute('src', src);
|
script.setAttribute('src', src);
|
||||||
if (callback) {
|
if (callback) {
|
||||||
script.onreadystatechange = script.onload = function() {
|
script.onload = function() {
|
||||||
if (!loaded) {
|
if (!loaded) {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue