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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue