Let background page instantiate AccountManagers
Remove the need to expose the server url config as a global. // FREEBIE
This commit is contained in:
parent
edd76ec65a
commit
e626355e0c
3 changed files with 8 additions and 5 deletions
|
@ -65,7 +65,7 @@
|
|||
$('#init-setup').show().addClass('in');
|
||||
$('#status').text("Connecting...");
|
||||
|
||||
var accountManager = new bg.textsecure.AccountManager(bg.TEXT_SECURE_SERVER_URL);
|
||||
var accountManager = new bg.getAccountManager();
|
||||
accountManager.registerSecondDevice(setProvisioningUrl, confirmNumber, incrementCounter).then(function() {
|
||||
var launch = function() {
|
||||
bg.openInbox();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue