textsecure.storage, chromium.js
This commit is contained in:
parent
ee2f43aba4
commit
d9bf0a41fb
10 changed files with 84 additions and 81 deletions
|
@ -54,8 +54,8 @@ window.textsecure.api = function() {
|
|||
param.urlParameters = "";
|
||||
|
||||
if (param.do_auth) {
|
||||
param.user = storage.getUnencrypted("number_id");
|
||||
param.password = storage.getEncrypted("password");
|
||||
param.user = textsecure.storage.getUnencrypted("number_id");
|
||||
param.password = textsecure.storage.getEncrypted("password");
|
||||
}
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
|
@ -223,8 +223,8 @@ window.textsecure.api = function() {
|
|||
};
|
||||
|
||||
self.getWebsocket = function() {
|
||||
var user = storage.getUnencrypted("number_id");
|
||||
var password = storage.getEncrypted("password");
|
||||
var user = textsecure.storage.getUnencrypted("number_id");
|
||||
var password = textsecure.storage.getEncrypted("password");
|
||||
var URL = URL_BASE.replace(/^http/g, 'ws') + URL_CALLS['push'] + '/?';
|
||||
var params = $.param({
|
||||
user: '+' + getString(user).substring(1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue