更新 webapp1.py

This commit is contained in:
luxtiasco 2023-03-06 02:58:52 +08:00 committed by GitHub
parent a6acd465f3
commit ea4fe15103
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1303,19 +1303,18 @@ function modal_open(url, num)
iframe.attachEvent("onload", function() {
resolve("success");
});
} else {
iframe.onload = function() {
resolve("success");
};
}
if (iframe.attachEvent&&num=='pdf') {
} else if (iframe.attachEvent&&num=='pdf') {
iframe.attachEvent("textlayerrendered", function() {
resolve("success");
});
} else {
} else if (num=='pdf'){
iframe.textlayerrendered = function() {
resolve("success");
};
}else{
iframe.onload = function() {
resolve("success");
};
}
});
keytextres = []