How did downloads ever work?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4084 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-12-28 18:23:52 +00:00
parent d88752d840
commit 9c89c2f717
2 changed files with 2 additions and 2 deletions

View File

@ -540,7 +540,7 @@ function sendData(response, data, type, headers) {
response.writeHead(200, Object.assign({"Content-Type": "video/mp4", "Content-Length": data.byteLength}, headers || {}));
response.end(data);
} else {
response.writeHead(200, Object.assign({"Content-Type": type || "text/javascript; charset=utf-8", "Content-Length": data.byteLength}, headers || {}));
response.writeHead(200, Object.assign({"Content-Type": type || "application/binary", "Content-Length": data.byteLength}, headers || {}));
response.end(data);
}
} else {

View File

@ -60,7 +60,7 @@
</div>
</div>
<div id="viewPane" class="vbox" style="flex: 1 0; overflow: auto">
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" allow="serial" style="width: 100%; height: 100%; border: 0"></iframe>
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals allow-downloads" style="width: 100%; height: 100%; border: 0"></iframe>
</div>
</div>
<script src="/split/split.min.js"></script>