mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
07a7f9fac6
commit
9b32ed4494
2 changed files with 12 additions and 4 deletions
|
@ -1304,9 +1304,13 @@ function modal_open(url, num)
|
|||
resolve("success");
|
||||
});
|
||||
} else if (num=='pdf') {
|
||||
iframe.contentDocument.addEventListener('pagesloaded', function (e) {
|
||||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
PDFViewerApplication.initializedPromise.then(function() {
|
||||
PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
resolve("success");
|
||||
}, true);
|
||||
});
|
||||
});
|
||||
});
|
||||
}else{
|
||||
iframe.onload = function() {
|
||||
resolve("success");
|
||||
|
|
|
@ -1304,9 +1304,13 @@ function modal_open(url, num)
|
|||
resolve("success");
|
||||
});
|
||||
} else if (num=='pdf') {
|
||||
iframe.contentDocument.addEventListener('pagesloaded', function (e) {
|
||||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
PDFViewerApplication.initializedPromise.then(function() {
|
||||
PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
resolve("success");
|
||||
}, true);
|
||||
});
|
||||
});
|
||||
});
|
||||
}else{
|
||||
iframe.onload = function() {
|
||||
resolve("success");
|
||||
|
|
Loading…
Add table
Reference in a new issue