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

@@ -15,7 +15,7 @@
window.PROTO_ROOT +
') ' +
(error && error.stack ? error.stack : error);
console.log(text);
window.log.error(text);
throw error;
}
var protos = result.build('signalservice');
@@ -26,7 +26,7 @@
' (root: ' +
window.PROTO_ROOT +
')';
console.log(text);
window.log.error(text);
throw new Error(text);
}
for (var protoName in protos) {