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

@ -123,8 +123,7 @@
var prekey = new PreKey({id: keyId});
new Promise(function(resolve) {
var accountManager = new textsecure.AccountManager(TEXT_SECURE_SERVER_URL);
accountManager.refreshPreKeys().then(resolve);
getAccountManager().refreshPreKeys().then(resolve);
});
return new Promise(function(resolve) {