mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
更新 webapp1.py
This commit is contained in:
parent
a6acd465f3
commit
ea4fe15103
1 changed files with 6 additions and 7 deletions
|
@ -1303,19 +1303,18 @@ function modal_open(url, num)
|
||||||
iframe.attachEvent("onload", function() {
|
iframe.attachEvent("onload", function() {
|
||||||
resolve("success");
|
resolve("success");
|
||||||
});
|
});
|
||||||
} else {
|
} else if (iframe.attachEvent&&num=='pdf') {
|
||||||
iframe.onload = function() {
|
|
||||||
resolve("success");
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (iframe.attachEvent&&num=='pdf') {
|
|
||||||
iframe.attachEvent("textlayerrendered", function() {
|
iframe.attachEvent("textlayerrendered", function() {
|
||||||
resolve("success");
|
resolve("success");
|
||||||
});
|
});
|
||||||
} else {
|
} else if (num=='pdf'){
|
||||||
iframe.textlayerrendered = function() {
|
iframe.textlayerrendered = function() {
|
||||||
resolve("success");
|
resolve("success");
|
||||||
};
|
};
|
||||||
|
}else{
|
||||||
|
iframe.onload = function() {
|
||||||
|
resolve("success");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
keytextres = []
|
keytextres = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue