Use window.log in browser context, turn on console eslint rule

This commit is contained in:
Scott Nonnenberg 2018-07-21 12:00:08 -07:00
parent 4320b125dd
commit 5933a34a18
71 changed files with 816 additions and 559 deletions

View file

@ -85,7 +85,7 @@ OutgoingMessage.prototype = {
address
);
if (device.registrationId === 0) {
console.log('device registrationId 0!');
window.log.info('device registrationId 0!');
}
return builder.processPreKey(device).catch(
function(error) {
@ -267,7 +267,7 @@ OutgoingMessage.prototype = {
} else if (error.message === 'Identity key changed') {
error.timestamp = this.timestamp;
error.originalMessage = this.message.toArrayBuffer();
console.log(
window.log.error(
'Got "key changed" error from encrypt - no identityKey for application layer',
number,
deviceIds