IE9 does not need onreadystatechange
This commit is contained in:
parent
7e145c1228
commit
cb59b31927
@ -489,7 +489,7 @@ var Util = PDFJS.Util = (function UtilClosure() {
|
||||
var loaded = false;
|
||||
script.setAttribute('src', src);
|
||||
if (callback) {
|
||||
script.onreadystatechange = script.onload = function() {
|
||||
script.onload = function() {
|
||||
if (!loaded) {
|
||||
callback();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user