Refactor api.js into web_api, which encapsulates all web access

This commit is contained in:
Scott Nonnenberg 2018-05-25 18:01:56 -07:00
parent 37ebe9fcec
commit f3bd0cf903
16 changed files with 763 additions and 577 deletions

View file

@ -140,7 +140,7 @@ Message.prototype = {
};
function MessageSender(url, username, password, cdn_url) {
this.server = new TextSecureServer(url, username, password, cdn_url);
this.server = WebAPI.connect({ username, password });
this.pendingMessages = {};
}