Fix #31
This commit is contained in:
parent
8ebaf93485
commit
d9412f8cf9
|
@ -79,7 +79,7 @@ function spawnWebsocket(pa) {
|
||||||
var b64 = sjcl.decrypt(window.key, slice);
|
var b64 = sjcl.decrypt(window.key, slice);
|
||||||
window.a[data.part] = base64ToArrayBuffer(b64);
|
window.a[data.part] = base64ToArrayBuffer(b64);
|
||||||
if (data.part + 1 === data.total) {
|
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('please-wait').remove();
|
||||||
document.getElementById('loading').remove();
|
document.getElementById('loading').remove();
|
||||||
|
|
|
@ -70,7 +70,7 @@ function exportStorage() {
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
|
|
||||||
var storageData = [localStorage.getItem('files')];
|
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);
|
var url = window.URL.createObjectURL(exportFile);
|
||||||
|
|
||||||
a.href = url;
|
a.href = url;
|
||||||
|
|
Loading…
Reference in New Issue