Another fix for indentation

Another fix for indentation
This commit is contained in:
Alezia Kurdis 2021-03-10 22:54:05 -05:00 committed by GitHub
parent 1376e8593b
commit 9b823f9b8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,8 +103,9 @@
document.gen.dlapp.disabled = true;
function FormatJsJson(obj) {
var jsdata = 'var metadata = { "applications": [\n';
var jsdata = 'var metadata = { "applications":\n';
jsdata = jsdata + " [\n";
obj.applications.forEach(function(item, index) {
var comma = "";
if (index < obj.applications.length - 1 ) {
@ -123,7 +124,7 @@
jsdata = jsdata + " ]\n";
jsdata = jsdata + "};";
return jsdata;
}