Let background page instantiate AccountManagers

Remove the need to expose the server url config as a global.

// FREEBIE
This commit is contained in:
lilia 2015-09-01 12:57:02 -07:00
parent edd76ec65a
commit e626355e0c
3 changed files with 8 additions and 5 deletions

View file

@ -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();