mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-21 20:36:27 +00:00
Merge branch 'dev' of https://github.com/SharePoint/sp-dev-fx-webparts into dev
This commit is contained in:
commit
451727954e
@ -13,11 +13,9 @@ export class UserProfileService implements IUserProfileService {
|
||||
|
||||
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;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@ -80,4 +78,4 @@ export class UserProfileService implements IUserProfileService {
|
||||
public getProfilePhoto(photoUrl: string) {
|
||||
return `/_layouts/15/userphoto.aspx?size=M&url=${photoUrl}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user