diff --git a/stable.user.js b/stable.user.js index ccf0aa5..db602b0 100755 --- a/stable.user.js +++ b/stable.user.js @@ -1708,7 +1708,8 @@ setVal('lastInfoCheckTime', now) } - if (now > lastCheck + (infoExpireTime * 1000)) { + const lastInfo = JSON.parse(getVal('lastInfo')) + if (lastInfo.result !== 'success' || now > lastCheck + (infoExpireTime * 1000)) { return new Promise((resolve, reject) => { const url = apiAdress + 'infos?version=true&motd=true&subjinfo=true&cversion=' + @@ -1744,7 +1745,7 @@ } else { return new Promise((resolve, reject) => { try { - resolve(JSON.parse(getVal('lastInfo'))) + resolve(lastInfo) } catch (e) { Log('Errro paring JSON in GetXHRInfos, when using old data!') Log(e)