Skip to content

Commit d4ef85a

Browse files
author
vakrilov
committed
console.group() polyfill
1 parent b40783a commit d4ef85a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

nativescript-angular/application.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import "zone.js/dist/zone-node";
33

44
import 'reflect-metadata';
55
import './polyfills/array';
6+
import './polyfills/console';
7+
68
import {rendererLog, rendererError} from "./trace";
79
import {SanitizationService} from '@angular/core/src/security';
810
import {isPresent, Type, print} from '@angular/core/src/facade/lang';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (!console.group) {
2+
console.group = () => {};
3+
}
4+
5+
if (!console.groupEnd) {
6+
console.groupEnd = () => {};
7+
}

0 commit comments

Comments
 (0)