Skip to content

Commit fb16ca5

Browse files
author
Booyoun-Kim
committed
added cleanMnemonics function
1 parent 58a17e9 commit fb16ca5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

example/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>KEYSTATION Example</title>
66
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
77
<script src="https://keystation.cosmostation.io/lib/keystation.js"></script>
8+
<!-- <script src="http://localhost:8080/lib/keystation.js"></script> -->
89
</head>
910
<body>
1011
<button onclick="login();">Keystation Login</button>
@@ -49,6 +50,7 @@
4950

5051
window.addEventListener("message", function(e) {
5152
if (e.origin != "https://keystation.cosmostation.io") return;
53+
// if (e.origin != "http://localhost:8080") return;
5254
console.log(e.data);
5355
// e.data.account : User's keychain account. Remember this account!
5456
keystationAccount = e.data.account;

www/js/import.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function isMnemonicsValid(mnemonics) {
5656
return;
5757
}
5858

59+
$("#mnemonics").val(cleanMnemonics(mnemonics));
60+
5961
$(".pin-wrap").addClass("open");
6062
})
6163

0 commit comments

Comments
 (0)