escape filename in the ui

This commit is contained in:
Danny Coates 2017-07-18 11:53:43 -07:00
parent 45eccc1cad
commit b712a9d175
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 7 additions and 9 deletions

View file

@ -21,7 +21,6 @@ $(document).ready(function() {
$('#download-btn').click(download);
function download() {
const fileReceiver = new FileReceiver();
const name = document.createElement('p');
fileReceiver.on('progress', progress => {
$('#download-page-one').hide();
@ -82,7 +81,6 @@ $(document).ready(function() {
return;
})
.then(([decrypted, fname]) => {
name.innerText = fname;
const dataView = new DataView(decrypted);
const blob = new Blob([dataView]);
const downloadUrl = URL.createObjectURL(blob);