Let's make it all pretty, shall we?

We missed a couple directories with previous attempts to turn this on
globally: app/ and libtextsecure/

Not to mention files in places we didn't expect: ts files that weren't
in the ts directory!

This turns prettier on for every file we care about (js, ts, tsx, md)
everywhere in the project but for a few key parts.
This commit is contained in:
Scott Nonnenberg 2018-05-01 18:54:43 -07:00
parent df9c4d5629
commit 754d65ae2e
20 changed files with 1756 additions and 1542 deletions

View file

@ -27,33 +27,32 @@
*/
var store = {};
window.textsecure.storage.impl = {
/*****************************
*** Override Storage Routines ***
*****************************/
put: function(key, value) {
if (value === undefined)
throw new Error("Tried to store undefined");
store[key] = value;
postMessage({method: 'set', key: key, value: value});
},
/*****************************
*** Override Storage Routines ***
*****************************/
put: function(key, value) {
if (value === undefined) throw new Error('Tried to store undefined');
store[key] = value;
postMessage({ method: 'set', key: key, value: value });
},
get: function(key, defaultValue) {
if (key in store) {
return store[key];
} else {
return defaultValue;
}
},
get: function(key, defaultValue) {
if (key in store) {
return store[key];
} else {
return defaultValue;
}
},
remove: function(key) {
delete store[key];
postMessage({method: 'remove', key: key});
},
remove: function(key) {
delete store[key];
postMessage({ method: 'remove', key: key });
},
};
onmessage = function(e) {
store = e.data;
textsecure.protocol_wrapper.generateKeys().then(function(keys) {
postMessage({method: 'done', keys: keys});
close();
});
}
store = e.data;
textsecure.protocol_wrapper.generateKeys().then(function(keys) {
postMessage({ method: 'done', keys: keys });
close();
});
};