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