webcrypto utf8 encoding fix

This commit is contained in:
Mo Bitar
2017-04-28 11:10:10 -05:00
parent 0070c9e460
commit 4343518f07

View File

@@ -90,6 +90,7 @@ class SNCryptoWeb extends SNCrypto {
stringToArrayBuffer(string) {
// not available on Edge/IE
if(window.TextEncoder) {
var encoder = new TextEncoder("utf-8");
var result = encoder.encode(string);