Nikolay Suslov vor 4 Jahren
Ursprung
Commit
9aac57a42d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      public/app.js

+ 1 - 1
public/app.js

@@ -738,7 +738,7 @@ class App {
 
               //var source = (typeof(sourceToEdit) =="object") ? JSON.stringify(sourceToEdit): sourceToEdit;
               if (file.includes('_json')) {
-                source = (typeof JSON.parse(source) == 'object') ? source : JSON.stringify(source, null, '\t') 
+                source = (typeof JSON.parse(source) == 'object') ? JSON.stringify(JSON.parse(source), null, '\t') : source 
                 //source = source;//JSON.stringify(source, null, '\t');
               }