forked from lix-project/hydra
Fix displaying errors from JSON requests
This commit is contained in:
parent
48609664a5
commit
337a72ef4d
|
@ -121,7 +121,7 @@ function escapeHTML(s) {
|
|||
};
|
||||
|
||||
function requestFile(args) {
|
||||
if (!"error" in args) {
|
||||
if (!("error" in args)) {
|
||||
args.error = function(data) {
|
||||
json = {};
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue