From 547b7f02d61590bca4e4adb89eac7eb62506955c Mon Sep 17 00:00:00 2001 From: Cloud User Date: Mon, 20 Mar 2023 08:43:06 +0000 Subject: [PATCH] fix issue with downloads not working --- www/jinjafx_o.js | 7 ++++++- www/output.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/www/jinjafx_o.js b/www/jinjafx_o.js index 29ce89e..696c718 100644 --- a/www/jinjafx_o.js +++ b/www/jinjafx_o.js @@ -66,7 +66,12 @@ if (obj != null) { var zip = new JSZip(); Object.keys(obj.outputs).forEach(function(o) { - var [ofile, oformat] = o.split(':', 2); + var ofile = o; + var oformat = 'text'; + + if (ofile.includes(':')) { + [ofile, oformat] = ofile.split(':', 2); + } ofile = ofile.replace(/[^A-Z0-9_. -/]/gi, '_').replace(/_+/g, '_'); diff --git a/www/output.html b/www/output.html index 3b69d91..d0bfe46 100644 --- a/www/output.html +++ b/www/output.html @@ -14,7 +14,7 @@ - +
Generating Output...