mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
f
This commit is contained in:
parent
08f12f67e7
commit
07a7f9fac6
2 changed files with 1251 additions and 9 deletions
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() {
|
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(
|
||||||
() => {
|
() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue