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:
parent
fe63ab1242
commit
0fa165c606
@ -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);
|
||||
$.getJSON(catalog, {_: new Date().getTime()},function(v) {
|
||||
handleCatalogResponse(null,catalog,index,v);
|
||||
refreshNodeModuleList();
|
||||
} catch(err) {
|
||||
console.error(catalog,err.toString())
|
||||
handleCatalogResponse(err,catalog,index);
|
||||
}
|
||||
}
|
||||
}).fail(function(jqxhr, textStatus, error) {
|
||||
handleCatalogResponse(jqxhr,catalog,index);
|
||||
}).always(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user