Forum Discussion
Unknown crossbar on Teams tab
- Oct 31, 2024
Dear Nivedipa
First of all, I'd like to know what the script tags you mentioned is .
In order to get the language of Teams, I'm using "~index.html?locale={app.locale}" in the "contentUrl" of manifest.json. And so far, it works well.
Actually, I used "app.initialize()" of Teams Client lib. to get the lang info.
However ,It took a lot of time for Client sdk lib to be initialized. And it made a sync problem to initialize our app. On the other hand, "~ ?locale={app.locale}" doesn't take almost.
1. If this is "script tag", do I have to initalize "app.initialize()" of the sdk lib before parsing "?locale={app.locale}" ?I tried to use "app.intialize()" in my code. And I found that the cross banner is disappeared.
2. we often use <script /> in "index.html". Is this the script tags you mentioned ?
That means that we have to use MS Client sdk when using "Static tab" ?Otherwise, can you let me know what the script tags is?
Many thanks
BH
Can you explain what the "script tags" is ?
byungheesohn - You can use script tag like below:
<!-- Microsoft Teams JavaScript API (via CDN) -->
<script
src="https://res.cdn.office.net/teams-js/2.30.0/js/MicrosoftTeams.min.js"
integrity="sha384-8I0Bv4bWDPSX5ZYhJcChnvrBNoieX3zASTxmZ9URwnjEVx70hsrN0ZUy/C46u8dw"
crossorigin="anonymous"
></script>
<!-- Microsoft Teams JavaScript API (via npm) -->
<script src="node_modules/@microsoft/teams-js@2.30.0/dist/MicrosoftTeams.min.js"></script>
<!-- Microsoft Teams JavaScript API (via local) -->
<script src="MicrosoftTeams.min.js"></script>
Ref Doc: Microsoft Teams SDK reference - Teams | Microsoft Learn