aboutsummaryrefslogtreecommitdiff
path: root/src/js/jsbip39.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/jsbip39.js')
-rw-r--r--src/js/jsbip39.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/js/jsbip39.js b/src/js/jsbip39.js
index 025f625..3230e3b 100644
--- a/src/js/jsbip39.js
+++ b/src/js/jsbip39.js
@@ -156,14 +156,7 @@ var Mnemonic = function(language) {
156 } 156 }
157 157
158 self.normalizeString = function(str) { 158 self.normalizeString = function(str) {
159 if (typeof str.normalize == "function") { 159 return str.normalize("NFKD");
160 return str.normalize("NFKD");
161 }
162 else {
163 // TODO decide how to handle this in the future.
164 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
165 return str;
166 }
167 } 160 }
168 161
169 function byteArrayToWordArray(data) { 162 function byteArrayToWordArray(data) {