mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-18 06:09:58 +00:00
Update cobalt.js
This commit is contained in:
parent
5087665a5e
commit
378e1d2118
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ if (fs.existsSync('./.env')) {
|
|||
res.status(j.status).json(j.body);
|
||||
} else {
|
||||
let j = apiJSON(3, { t: loc(languageCode(req), 'ErrorNoLink', process.env.selfURL) })
|
||||
if (!j === undefined && j.status && j.body) {
|
||||
if (!typeof j === "undefined" && j.status && j.body) {
|
||||
res.status(j.status).json(j.body);
|
||||
} else {
|
||||
res.status(500).json({ 'status': 'error', 'text': loc(languageCode(req), 'ErrorUnknownStatus') })
|
||||
|
|
Loading…
Reference in a new issue