removed duplicate code (#194)
This commit is contained in:
parent
fe3a209ac0
commit
115b8d9b70
|
@ -12,13 +12,11 @@ export class UserProfileService implements IUserProfileService {
|
|||
private _currentWebUrl: string;
|
||||
|
||||
constructor(serviceScope: ServiceScope) {
|
||||
serviceScope.whenFinished(() => {
|
||||
serviceScope.whenFinished(() => {
|
||||
this._spHttpClient = serviceScope.consume(SPHttpClient.serviceKey);
|
||||
this._pageContext = serviceScope.consume(PageContext.serviceKey);
|
||||
this._currentWebUrl = this._pageContext.web.absoluteUrl;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public getPropertiesForCurrentUser(): Promise<IPerson> {
|
||||
|
|
Loading…
Reference in New Issue