This commit is contained in:
Joseph Cheung 2023-03-06 10:02:50 +08:00
parent 08f12f67e7
commit 07a7f9fac6
2 changed files with 1251 additions and 9 deletions

File diff suppressed because one or more lines are too long

View file

@ -1303,20 +1303,20 @@ function modal_open(url, num)
iframe.attachEvent("onload", function() { iframe.attachEvent("onload", function() {
resolve("success"); resolve("success");
}); });
} else if (iframe.attachEvent&&num=='pdf') {
iframe.attachEvent("textlayerrendered", function() {
resolve("success");
});
} else if (num=='pdf') { } else if (num=='pdf') {
iframe.textlayerrendered = function() { iframe.contentDocument.addEventListener('pagesloaded', function (e) {
resolve("success"); resolve("success");
}; }, true);
}else{ }else{
iframe.onload = function() { iframe.onload = function() {
resolve("success"); resolve("success");
}; };
} }
}); });
keytextres = [] keytextres = []
iframePromise.then( iframePromise.then(
() => { () => {