fix(dom_adapter): remove logError from logGroup (#12925)

This commit is contained in:
Dzmitry Shylovich 2016-12-10 02:40:26 +03:00 committed by Victor Berchet
parent 08ff2e5249
commit 8a8c53250e
1 changed files with 5 additions and 2 deletions

View File

@ -79,7 +79,11 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
// TODO(tbosch): move this into a separate environment class once we have it
logError(error: string): void {
if (window.console) {
(window.console.error || window.console.log)(error);
if (console.error) {
console.error(error);
} else {
console.log(error);
}
}
}
@ -93,7 +97,6 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
logGroup(error: string): void {
if (window.console) {
window.console.group && window.console.group(error);
this.logError(error);
}
}