From d9412f8cf9d0a96ad68828e21e08258a76caf04d Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Jul 24 2016 16:32:48 +0000 Subject: Fix #31 --- diff --git a/themes/default/public/js/lufi-down.js b/themes/default/public/js/lufi-down.js index 07b05c8..a7d83b1 100644 --- a/themes/default/public/js/lufi-down.js +++ b/themes/default/public/js/lufi-down.js @@ -79,7 +79,7 @@ function spawnWebsocket(pa) { var b64 = sjcl.decrypt(window.key, slice); window.a[data.part] = base64ToArrayBuffer(b64); if (data.part + 1 === data.total) { - var blob = new File(a, data.name, {type: data.type}); + var blob = new Blob(a, {type: data.type}); document.getElementById('please-wait').remove(); document.getElementById('loading').remove(); diff --git a/themes/default/public/js/lufi-files.js b/themes/default/public/js/lufi-files.js index 36719d1..5e4b958 100644 --- a/themes/default/public/js/lufi-files.js +++ b/themes/default/public/js/lufi-files.js @@ -70,7 +70,7 @@ function exportStorage() { document.body.appendChild(a); var storageData = [localStorage.getItem('files')]; - var exportFile = new File(storageData, 'data.json', {type : 'application/json'}); + var exportFile = new Blob(storageData, {type : 'application/json'}); var url = window.URL.createObjectURL(exportFile); a.href = url;