1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Small bug fixes (#1583)

Small bug fixes
This commit is contained in:
Michael Keller 2019-08-18 12:17:38 +12:00 committed by GitHub
commit e2c6cfae0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -42,7 +42,9 @@ var ConfigStorage = {
} else {
//console.log('Abstraction.set',input);
Object.keys(input).forEach(function (element) {
window.localStorage.setItem(element, JSON.stringify(input));
var tmpObj = {};
tmpObj[element] = input[element];
window.localStorage.setItem(element, JSON.stringify(tmpObj));
});
}
}

View file

@ -112,6 +112,9 @@ let FirmwareCache = (function () {
* @returns {boolean}
*/
function has(release) {
if (!release) {
return false;
}
if (!journalLoaded) {
console.warn("Cache not yet loaded");
return false;

View file

@ -104,9 +104,10 @@ JenkinsLoader.prototype.loadBuilds = function (jobName, callback) {
chrome.storage.local.set(object);
self._parseBuilds(jobUrl, jobName, builds, callback);
}).error(xhr => {
}).fail(xhr => {
GUI.log(i18n.getMessage('buildServerLoadFailed', [jobName, `HTTP ${xhr.status}`]));
}).fail(cachedCallback);
cachedCallback();
});
} else {
cachedCallback();
}