@@ -8,7 +8,7 @@ manager: nitinme
8
8
ms.service : cognitive-services
9
9
ms.subservice : immersive-reader
10
10
ms.topic : tutorial
11
- ms.date : 01/14/2020
11
+ ms.date : 01/14/2020
12
12
ms.author : skamal
13
13
# Customer intent: As a developer, I want to learn more about the Immersive Reader SDK so that I can fully utilize all that the SDK has to offer.
14
14
---
@@ -108,14 +108,14 @@ router.get('/GetTokenAndSubdomain', function(req, res) {
108
108
console .log (err);
109
109
return res .status (500 ).send (' CogSvcs IssueToken error' );
110
110
}
111
-
111
+
112
112
var tokenResultParsed = JSON .parse (tokenResult);
113
-
113
+
114
114
if (tokenResultParsed .error ) {
115
115
console .log (tokenResult);
116
116
return res .send ({error : " Unable to acquire Azure AD token. Check the debugger for more information." })
117
117
}
118
-
118
+
119
119
var token = tokenResultParsed .access_token ;
120
120
121
121
var subdomain = " " ;
@@ -169,8 +169,8 @@ The **getimmersivereaderlaunchparams** API endpoint should be secured behind som
169
169
}
170
170
body
171
171
div(class="container")
172
- button(class="immersive-reader-button" data-button-style="icon" data-locale="en" onclick='handleLaunchImmersiveReader("wus")') WestUS Immersive Reader
173
- button(class="immersive-reader-button" data-button-style="icon" data-locale="en" onclick='handleLaunchImmersiveReader("eus")') EastUS Immersive Reader
172
+ button(class="immersive-reader-button" data-button-style="icon" data-locale="en" onclick='handleLaunchImmersiveReader("wus")') WestUS Immersive Reader
173
+ button(class="immersive-reader-button" data-button-style="icon" data-locale="en" onclick='handleLaunchImmersiveReader("eus")') EastUS Immersive Reader
174
174
175
175
h1(id="ir-title") About Immersive Reader
176
176
div(id="ir-content" lang="en-us")
@@ -219,15 +219,15 @@ The **getimmersivereaderlaunchparams** API endpoint should be secured behind som
219
219
.then(function (response) {
220
220
const token = response["token"];
221
221
const subdomain = response["subdomain"];
222
- // Learn more about chunk usage and supported MIME types https://docs.microsoft.com/en-us/ azure/cognitive-services/immersive-reader/reference#chunk
222
+ // Learn more about chunk usage and supported MIME types https://docs.microsoft.com/azure/cognitive-services/immersive-reader/reference#chunk
223
223
const data = {
224
224
title: $("#ir-title").text(),
225
225
chunks: [{
226
226
content: $("#ir-content").html(),
227
227
mimeType: "text/html"
228
228
}]
229
229
};
230
- // Learn more about options https://docs.microsoft.com/en-us/ azure/cognitive-services/immersive-reader/reference#options
230
+ // Learn more about options https://docs.microsoft.com/azure/cognitive-services/immersive-reader/reference#options
231
231
const options = {
232
232
"onExit": exitCallback,
233
233
"uiZIndex": 2000
0 commit comments