X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fjs%2Fjsbip39.js;h=3230e3bb46f275356bf3db523d85f66f36d65f3e;hb=e2186682ac0cfa1f301c226408cdfb438f7b4d6e;hp=025f6258d7d8462427c993b84d94aed9d1483f0c;hpb=599fb39e4e775c4f972ecfa3a9c4548177c23183;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git 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) { } self.normalizeString = function(str) { - if (typeof str.normalize == "function") { - return str.normalize("NFKD"); - } - else { - // TODO decide how to handle this in the future. - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize - return str; - } + return str.normalize("NFKD"); } function byteArrayToWordArray(data) {