Fix undefined variable in for's (browser update to strict mode?)
This commit is contained in:
parent
de83429962
commit
0d4ae6a8cb
4 changed files with 23 additions and 19 deletions
|
@ -17,6 +17,8 @@
|
|||
window.textsecure = window.textsecure || {};
|
||||
|
||||
window.textsecure.api = function() {
|
||||
'use strict';
|
||||
|
||||
var self = {};
|
||||
|
||||
/************************************************
|
||||
|
@ -147,7 +149,7 @@ window.textsecure.api = function() {
|
|||
|
||||
keys.preKeys = [];
|
||||
var j = 0;
|
||||
for (i in genKeys.preKeys)
|
||||
for (var i in genKeys.preKeys)
|
||||
keys.preKeys[j++] = {keyId: i, publicKey: btoa(getString(genKeys.preKeys[i].publicKey))};
|
||||
|
||||
//TODO: This is just to make the server happy (v2 clients should choke on publicKey),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue