mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 04:12:18 -05:00
bugfix util
This commit is contained in:
parent
ef54dc3aae
commit
8c7a464fc8
@ -142,7 +142,7 @@ app.crypto.Util = function(window, uuid) {
|
||||
var b = new Uint8Array(buf);
|
||||
var str = '';
|
||||
|
||||
for (var i = 0; i < b.byteLength; i++) {
|
||||
for (var i = 0; i < b.length; i++) {
|
||||
str += String.fromCharCode(b[i]);
|
||||
}
|
||||
|
||||
@ -157,7 +157,7 @@ app.crypto.Util = function(window, uuid) {
|
||||
this.uint8Arr2BinStr = function(buf) {
|
||||
var str = '';
|
||||
|
||||
for (var i = 0; i < buf.byteLength; i++) {
|
||||
for (var i = 0; i < buf.length; i++) {
|
||||
str += String.fromCharCode(buf[i]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user