Skip to content

Commit 8a36385

Browse files
Merge branch 'dev' into Large_File_Upload_For_SharePoint
2 parents 118f97b + b6416ce commit 8a36385

21 files changed

+4799
-26
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
src/
1+
src/
2+
scripts/

samples/browser/src/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
</head>
1313

1414
<body style="background: #f3f3f3;">
15-
<div class="fileUploadParent">
15+
<!-- <div class="fileUploadParent">
1616
<img id="profileImg" width="100px" src="" alt="profileImg" />
1717
<input id="uploadProfile" type="file" class="fileUpload" onchange="request.updateProfilePicture()" />
1818
<div class="imageInput">
1919
<img width="20px" src="./upload-user.svg" />
2020
</div>
21-
</div>
21+
</div> -->
2222
<div display="inline-block">
2323
<h2>
2424
<span>Hello </span>
25-
<span id="displayName" style="display: inline-block; vertical-align: middle;"></span>
26-
<span> !</span>
25+
<!-- <span id="displayName" style="display: inline-block; vertical-align: middle;"></span> -->
26+
<span>!</span>
2727
</h2>
2828
</div>
2929
<div class="main">

samples/browser/src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ const init = async () => {
2323

2424
bindEvents();
2525

26-
let displayName = await request.getDisplayName();
27-
ui.setDisplayName(displayName);
26+
// let displayName = await request.getDisplayName();
27+
// ui.setDisplayName(displayName);
2828

29-
let profileImg = await request.getProfilePicture();
30-
ui.setProfilePicture(profileImg);
29+
// let profileImg = await request.getProfilePicture();
30+
// ui.setProfilePicture(profileImg);
3131
};
3232

3333
const bindEvents = () => {

samples/browser/src/request.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ let request = {
1313

1414
getProfilePicture: async () => {
1515
try {
16-
let response = await client
17-
.api("/me/photo/$value")
18-
.responseType(MicrosoftGraph.ResponseType.BLOB)
19-
.get();
16+
let response = await client.api("/me/photo/$value").get();
2017
return response;
2118
} catch (error) {
2219
console.error(error);

0 commit comments

Comments
 (0)