This commit is contained in:
Luc Didry 2015-12-22 12:52:43 +01:00 committed by Luc Didry
parent 8ebaf93485
commit d9412f8cf9
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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;