f
This commit is contained in:
parent
08f12f67e7
commit
07a7f9fac6
1244
searx/webapp.py
1244
searx/webapp.py
File diff suppressed because one or more lines are too long
@ -1303,20 +1303,20 @@ function modal_open(url, num)
|
||||
iframe.attachEvent("onload", function() {
|
||||
resolve("success");
|
||||
});
|
||||
} else if (iframe.attachEvent&&num=='pdf') {
|
||||
iframe.attachEvent("textlayerrendered", function() {
|
||||
} else if (num=='pdf') {
|
||||
iframe.contentDocument.addEventListener('pagesloaded', function (e) {
|
||||
resolve("success");
|
||||
});
|
||||
} else if (num=='pdf'){
|
||||
iframe.textlayerrendered = function() {
|
||||
resolve("success");
|
||||
};
|
||||
}, true);
|
||||
}else{
|
||||
iframe.onload = function() {
|
||||
resolve("success");
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
keytextres = []
|
||||
iframePromise.then(
|
||||
() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user