Nikolay Suslov 5 anni fa
parent
commit
cb747cb151
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      public/app.js

+ 1 - 0
public/app.js

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