-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all sample codes to add await and async for initialize function #1008
Changes from 9 commits
48db35d
eeb4cc6
969ac3e
ed1e8c2
992ac97
a4cb3da
bb857fc
a1b16f9
be6c36c
6ba0b87
c23f166
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
integrity="sha384-lIk8T3uMxKqXQVVfFbiw0K/Nq+kt1P3NtGt/pNexiDby2rKU6xnDY8p16gIwKqgI" , | ||
crossorigin="anonymous"></script> | ||
<script> | ||
microsoftTeams.app.initialize(); | ||
microsoftTeams.app.initialize().then(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please try once with await microsoftTeams.app.initialize() |
||
}); | ||
localStorage.removeItem("auth.error"); | ||
let code = getHashParameters(); | ||
let key = "auth.result"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
<button onclick="selectHeroCards()">Hero Cards</button> | ||
<script> | ||
$(document).ready(function () { | ||
microsoftTeams.app.initialize(); | ||
microsoftTeams.app.initialize().then(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please try once with await microsoftTeams.app.initialize() |
||
}); | ||
}); | ||
|
||
function selectThumbnailCards() { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ | |
<script src="https://res.cdn.office.net/teams-js/2.0.0/js/MicrosoftTeams.min.js" crossorigin="anonymous"></script> | ||
|
||
<script> | ||
microsoftTeams.app.initialize(); | ||
microsoftTeams.app.initialize().then(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please try once with await microsoftTeams.app.initialize() |
||
}); | ||
function submit() | ||
{ | ||
microsoftTeams.authentication.notifySuccess('PopUpSignInAuthenticationSuccess'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed