mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
8fc336c5ca
commit
c05c8a4529
2 changed files with 2 additions and 2 deletions
|
@ -1300,7 +1300,7 @@ function modal_open(url, num)
|
|||
var iframe = document.querySelector("#iframe-wrapper > iframe");
|
||||
iframe.src = url;
|
||||
if (num=='pdf') {
|
||||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
document.addEventListener.addEventListener("webviewerloaded", function() {
|
||||
iframe.contentWindow.PDFViewerApplication.initializedPromise.then(function() {
|
||||
iframe.contentWindow.PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
console.log("pdf loaded")
|
||||
|
|
|
@ -1300,7 +1300,7 @@ function modal_open(url, num)
|
|||
var iframe = document.querySelector("#iframe-wrapper > iframe");
|
||||
iframe.src = url;
|
||||
if (num=='pdf') {
|
||||
iframe.contentDocument.addEventListener("webviewerloaded", function() {
|
||||
document.addEventListener.addEventListener("webviewerloaded", function() {
|
||||
iframe.contentWindow.PDFViewerApplication.initializedPromise.then(function() {
|
||||
iframe.contentWindow.PDFViewerApplication.eventBus.on("documentloaded", function(event) {
|
||||
console.log("pdf loaded")
|
||||
|
|
Loading…
Add table
Reference in a new issue