mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
abb8c01b2a
commit
877948b29d
2 changed files with 6 additions and 0 deletions
|
@ -1303,6 +1303,7 @@ function modal_open(url, num)
|
|||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
iframe.contentWindow.PDFViewerApplication.initializedPromise.then(function() {
|
||||
iframe.contentWindow.PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
console.log("pdf loaded")
|
||||
resolve("success");
|
||||
});
|
||||
});
|
||||
|
@ -1310,10 +1311,12 @@ function modal_open(url, num)
|
|||
}
|
||||
else if (iframe.attachEvent) {
|
||||
iframe.attachEvent("onload", function() {
|
||||
console.log("page loaded")
|
||||
resolve("success");
|
||||
});
|
||||
} else{
|
||||
iframe.onload = function() {
|
||||
console.log("page loaded")
|
||||
resolve("success");
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1303,6 +1303,7 @@ function modal_open(url, num)
|
|||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
iframe.contentWindow.PDFViewerApplication.initializedPromise.then(function() {
|
||||
iframe.contentWindow.PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
console.log("pdf loaded")
|
||||
resolve("success");
|
||||
});
|
||||
});
|
||||
|
@ -1310,10 +1311,12 @@ function modal_open(url, num)
|
|||
}
|
||||
else if (iframe.attachEvent) {
|
||||
iframe.attachEvent("onload", function() {
|
||||
console.log("page loaded")
|
||||
resolve("success");
|
||||
});
|
||||
} else{
|
||||
iframe.onload = function() {
|
||||
console.log("page loaded")
|
||||
resolve("success");
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue