Fix infinite recursion in ensureStringed(Array)
To ensureStringed(thing), you must first ensureStringed(thing)... This was causing an infintel loop in multidevice mode.
This commit is contained in:
@@ -139,7 +139,7 @@ function ensureStringed(thing) {
|
||||
else if (thing instanceof Array) {
|
||||
var res = [];
|
||||
for (var i = 0; i < thing.length; i++)
|
||||
res[i] = ensureStringed(thing);
|
||||
res[i] = ensureStringed(thing[i]);
|
||||
return res;
|
||||
} else if (thing === Object(thing)) {
|
||||
var res = {};
|
||||
|
@@ -22,7 +22,7 @@ $('#number').on('change', function() {//TODO
|
||||
$('#number').attr('style', '');
|
||||
});
|
||||
|
||||
var single_device = true;
|
||||
var single_device = false;
|
||||
var signaling_key = getRandomBytes(32 + 20);
|
||||
var password = btoa(getRandomBytes(16));
|
||||
password = password.substring(0, password.length - 2);
|
||||
|
Reference in New Issue
Block a user