1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Revert error handling in palette manager

This commit is contained in:
Nick O'Leary 2019-04-05 13:45:06 +01:00
parent fe63ab1242
commit 0fa165c606
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -382,20 +382,9 @@ RED.palette.editor = (function() {
catalogueLoadStart = Date.now();
var handled = 0;
catalogues.forEach(function(catalog,index) {
$.ajax({
dataType: "json",
url: catalog,
data: {_: new Date().getTime()},
success: function(v) {
try {
var parsed = JSON.parse(v);
handleCatalogResponse(null,catalog,index,parsed);
refreshNodeModuleList();
} catch(err) {
console.error(catalog,err.toString())
handleCatalogResponse(err,catalog,index);
}
}
$.getJSON(catalog, {_: new Date().getTime()},function(v) {
handleCatalogResponse(null,catalog,index,v);
refreshNodeModuleList();
}).fail(function(jqxhr, textStatus, error) {
handleCatalogResponse(jqxhr,catalog,index);
}).always(function() {