try {
data = JSON.parse(xhr.responseText);
}
- catch (e) { }
+ catch (e) {
+ // Ignore JSON parsing failure.
+ }
let showError = true;
if (typeof options.failure === "function") {
showError = options.failure(data || {}, xhr.responseText || "", xhr, options.data);
_settings = JSON.parse(settings);
}
}
- catch (e) { }
+ catch (e) {
+ // Ignore JSON parsing failure.
+ }
if (!_settings.editorAutosave)
Devtools.toggleEditorAutosave(true);
if (_settings.eventLogging)
});
}
}
- catch (e) { }
+ catch (e) {
+ // Ignore JSON parsing failure.
+ }
if (objectType) {
parameters.set("types[]", objectType);
}
let data: ResponseData | null = null;
try {
data = JSON.parse(xhr.responseText);
- } catch (e) {}
+ } catch (e) {
+ // Ignore JSON parsing failure.
+ }
let showError = true;
if (typeof options.failure === "function") {
if (settings !== null) {
_settings = JSON.parse(settings);
}
- } catch (e) {}
+ } catch (e) {
+ // Ignore JSON parsing failure.
+ }
if (!_settings.editorAutosave) Devtools.toggleEditorAutosave(true);
if (_settings.eventLogging) Devtools.toggleEventLogging(true);
parameters.set(key, data[key]);
});
}
- } catch (e) {}
+ } catch (e) {
+ // Ignore JSON parsing failure.
+ }
if (objectType) {
parameters.set("types[]", objectType);