Skip to content

Commit 84980f1

Browse files
committed
fix save kefile problem, and updated the logo
1 parent c3b0602 commit 84980f1

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

html/js/index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ function onClickDownloadButton() {
3333
address = account.getAddressString();
3434
keyStr = account.toKeyString(password);
3535
blob = new Blob([keyStr], { type: "application/json; charset=utf-8" });
36-
saveAs(blob, address);
36+
//saveAs(blob, address);
37+
var i = window.document.createElement("a");
38+
i.target = "_blank",
39+
i.href = window.URL.createObjectURL(blob)
40+
i.download = address
41+
document.body.appendChild(i)
42+
i.click()
43+
document.body.removeChild(i)
44+
3745
bootbox.hideAll();
3846
}
3947
}

images/icon_128.png

1.44 KB
Loading

images/icon_19.png

2.48 KB
Loading

images/icon_38.png

2.41 KB
Loading

images/nebulas.png

-342 Bytes
Loading

0 commit comments

Comments
 (0)