fix(platform_browser): fix disableDebugTools() (#12918)
This commit is contained in:
parent
42198cd7d5
commit
ce89039036
|
@ -37,5 +37,7 @@ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {
|
||||||
* @experimental All debugging apis are currently experimental.
|
* @experimental All debugging apis are currently experimental.
|
||||||
*/
|
*/
|
||||||
export function disableDebugTools(): void {
|
export function disableDebugTools(): void {
|
||||||
|
if (context.ng) {
|
||||||
delete context.ng.profiler;
|
delete context.ng.profiler;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue