Skip to content

Commit

Permalink
fix issue with downloads not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud User committed Mar 20, 2023
1 parent 8692ce4 commit 547b7f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion www/jinjafx_o.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '_');

Expand Down
2 changes: 1 addition & 1 deletion www/output.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js" integrity="sha512-hcV6DX35BKgiTiWYrJgPbu3FxS6CsCjKgmrsPRpUPkXWbvPiKxvSVSdhWX0yXcPctOI2FJ4WP6N1zH+17B/sAA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/plugin/advancedFormat.min.js" integrity="sha512-oOF6H/+bcZjL9xEZ71lPxWSLn62axEgf6jDBuge0rTy7HjcMmWLQ7Y46WVC0m1hGibeYyTeHLi1ZUrZTvt2QxQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js" integrity="sha512-XMVd28F1oH/O71fzwBnV7HucLxVwtxf26XV8P4wPk26EDxuGZ91N8bsOttmnomcCD3CS5ZMRL50H0GgOHvegtg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/269dcfee/jinjafx_o.js"></script>
<script src="/6b770078/jinjafx_o.js"></script>
</head>
<body>
<div id="status" class="alert alert-primary wait fw-bold">Generating Output...</div>
Expand Down

0 comments on commit 547b7f0

Please sign in to comment.