|
@@ -1681,16 +1681,7 @@ function downloadFile() {
|
|
|
|
|
|
var contentToSend = '{}\n::algorithm::';
|
|
|
|
|
|
- if (settingsProgrammingTypes == "textual") {
|
|
|
- contentToSend += ivprogCore.CodeEditor.getCode();
|
|
|
- } else {
|
|
|
- contentToSend += JSON.stringify(window.program_obj, function(key, value) {
|
|
|
- if (key == 'dom_object') {
|
|
|
- return;
|
|
|
- }
|
|
|
- return value;
|
|
|
- });
|
|
|
- }
|
|
|
+ contentToSend = generator();
|
|
|
|
|
|
var date = new Date();
|
|
|
var temp = date.toISOString().split('T')[0] + "_" + date.toTimeString().split(' ')[0].replaceAll(':', '-');
|