Remove window.config in favor of window.getXXX() accessors
This commit is contained in:
parent
d5ead799ce
commit
1c23c6a9d7
10 changed files with 45 additions and 49 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
var ARCHIVE_AGE = 7 * 24 * 60 * 60 * 1000;
|
||||
|
||||
function AccountManager(url, username, password) {
|
||||
function AccountManager(username, password) {
|
||||
this.server = window.WebAPI.connect({ username, password });
|
||||
this.pending = Promise.resolve();
|
||||
}
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
|
||||
/* eslint-disable more/no-then */
|
||||
|
||||
function MessageReceiver(url, username, password, signalingKey, options = {}) {
|
||||
function MessageReceiver(username, password, signalingKey, options = {}) {
|
||||
this.count = 0;
|
||||
|
||||
this.url = url;
|
||||
this.signalingKey = signalingKey;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
|
@ -1121,14 +1120,12 @@ MessageReceiver.prototype.extend({
|
|||
window.textsecure = window.textsecure || {};
|
||||
|
||||
textsecure.MessageReceiver = function MessageReceiverWrapper(
|
||||
url,
|
||||
username,
|
||||
password,
|
||||
signalingKey,
|
||||
options
|
||||
) {
|
||||
const messageReceiver = new MessageReceiver(
|
||||
url,
|
||||
username,
|
||||
password,
|
||||
signalingKey,
|
||||
|
|
|
@ -139,7 +139,7 @@ Message.prototype = {
|
|||
},
|
||||
};
|
||||
|
||||
function MessageSender(url, username, password, cdn_url) {
|
||||
function MessageSender(username, password) {
|
||||
this.server = WebAPI.connect({ username, password });
|
||||
this.pendingMessages = {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue