Skip to content

Commit ad14947

Browse files
authored
fix a deprecation in jQuery 3.0 (Firmware flasher tab) (#1568)
fix a deprecation in jQuery 3.0 (Firmware flasher tab)
2 parents 7e371ee + 27f509c commit ad14947

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/jenkins_loader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ JenkinsLoader.prototype.loadJobs = function (viewName, callback) {
5252
chrome.storage.local.set(object);
5353

5454
wrappedCallback(jobs);
55-
}).error(xhr => {
55+
}).fail(xhr => {
5656
GUI.log(i18n.getMessage('buildServerLoadFailed', ['jobs', `HTTP ${xhr.status}`]));
57-
}).fail(cachedCallback);
57+
cachedCallback();
58+
});
5859
} else {
5960
cachedCallback();
6061
}

0 commit comments

Comments
 (0)