Skip to content

Commit

Permalink
Added app insights
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed May 14, 2018
1 parent 108ba6b commit 824dc6f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react';
import { ISecurityTrimmedControlProps, ISecurityTrimmedControlState, PermissionLevel } from '.';
import { SPHttpClient } from '@microsoft/sp-http';
import { SPPermission } from '@microsoft/sp-page-context';
import * as appInsights from '../../common/appInsights';

export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedControlProps, ISecurityTrimmedControlState> {
constructor(props: ISecurityTrimmedControlProps) {
Expand All @@ -10,6 +11,8 @@ export class SecurityTrimmedControl extends React.Component<ISecurityTrimmedCont
this.state = {
allowRender: false
};

appInsights.track('ReactPlaceholder', {});
}

/**
Expand Down

0 comments on commit 824dc6f

Please sign in to comment.