mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
7a102f1ee9
commit
cdd330bde0
2 changed files with 6 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -1390,6 +1390,7 @@ for (let i = 0; i < links.length; i++) {
|
|||
|
||||
var iframe = document.querySelector("#iframe-wrapper > iframe");
|
||||
new Promise((resolve, reject) => {
|
||||
lock_chat = 1;
|
||||
if(num=='pdf')
|
||||
{
|
||||
var pdf = iframe.contentWindow.PDFViewerApplication.pdfDocument;
|
||||
|
@ -1549,6 +1550,7 @@ for (let i = 0; i < links.length; i++) {
|
|||
resolve("success");
|
||||
|
||||
}).catch(function(error) {
|
||||
lock_chat = 0;
|
||||
console.error(error); //处理错误情况
|
||||
});
|
||||
|
||||
|
@ -1655,6 +1657,7 @@ for (let i = 0; i < links.length; i++) {
|
|||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
lock_chat = 0;
|
||||
console.error('Error:', error);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue