mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-07 13:38:39 +00:00
9d17034205
* updated react office graph to GA * uploaded src folder and the package folder * updated readme * again updated readme
22 lines
547 B
JavaScript
22 lines
547 B
JavaScript
"use strict";
|
|
var Utils = (function () {
|
|
function Utils() {
|
|
}
|
|
Utils.getUserPhotoUrl = function (userEmail, siteUrl, size) {
|
|
if (size === void 0) { size = 'S'; }
|
|
return siteUrl + "/_layouts/15/userphoto.aspx?size=" + size + "&accountname=" + userEmail;
|
|
};
|
|
Utils.trim = function (s) {
|
|
if (s && s.length > 0) {
|
|
return s.replace(/^\s+|\s+$/gm, '');
|
|
}
|
|
else {
|
|
return s;
|
|
}
|
|
};
|
|
return Utils;
|
|
}());
|
|
exports.Utils = Utils;
|
|
|
|
//# sourceMappingURL=Utils.js.map
|