fix(dom_adapter): remove logError from logGroup (#12925)
This commit is contained in:
parent
08ff2e5249
commit
8a8c53250e
@ -79,7 +79,11 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|||||||
// TODO(tbosch): move this into a separate environment class once we have it
|
// TODO(tbosch): move this into a separate environment class once we have it
|
||||||
logError(error: string): void {
|
logError(error: string): void {
|
||||||
if (window.console) {
|
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 {
|
logGroup(error: string): void {
|
||||||
if (window.console) {
|
if (window.console) {
|
||||||
window.console.group && window.console.group(error);
|
window.console.group && window.console.group(error);
|
||||||
this.logError(error);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user