Skip to content

Commit 7ad074f

Browse files
authored
Merge pull request #1196 from XhmikosR/xmr/javascript
Fix "JavaScript" case
2 parents 39091e6 + 86b38ee commit 7ad074f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/api/auth.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To get a session ID, you will have to send a `POST` request to the `/api/auth` e
2424
print(response.text)
2525
```
2626

27-
=== "Javascript (plain)"
27+
=== "JavaScript (plain)"
2828

2929
```javascript
3030
var data = JSON.stringify({"password":"your-password"});
@@ -37,7 +37,7 @@ To get a session ID, you will have to send a `POST` request to the `/api/auth` e
3737
});
3838
```
3939

40-
=== "Javascript (jQuery)"
40+
=== "JavaScript (jQuery)"
4141

4242
```javascript
4343
$.ajax({
@@ -167,7 +167,7 @@ Note that when using cookie-based authentication, you will also need to send a `
167167
print(response.text)
168168
```
169169

170-
=== "Javascript (plain)"
170+
=== "JavaScript (plain)"
171171

172172
```javascript
173173
var data = null;
@@ -184,7 +184,7 @@ Note that when using cookie-based authentication, you will also need to send a `
184184
xhr.send(data);
185185
```
186186

187-
=== "Javascript (jQuery)"
187+
=== "JavaScript (jQuery)"
188188

189189
```javascript
190190
$.ajax({
@@ -240,7 +240,7 @@ If you have 2FA enabled for your Pi-hole, you will need to provide a TOTP token
240240
print(response.text)
241241
```
242242

243-
=== "Javascript (plain)"
243+
=== "JavaScript (plain)"
244244

245245
```javascript
246246
var data = JSON.stringify({"password":"your-password", "totp":"123456"});
@@ -253,7 +253,7 @@ If you have 2FA enabled for your Pi-hole, you will need to provide a TOTP token
253253
});
254254
```
255255

256-
=== "Javascript (jQuery)"
256+
=== "JavaScript (jQuery)"
257257

258258
```javascript
259259
$.ajax({
@@ -347,7 +347,7 @@ To end your session before the SID expires, you can send a `DELETE` request to t
347347
print(response.text)
348348
```
349349

350-
=== "Javascript (plain)"
350+
=== "JavaScript (plain)"
351351

352352
```javascript
353353
var data = null;
@@ -363,7 +363,7 @@ To end your session before the SID expires, you can send a `DELETE` request to t
363363
xhr.send(data);
364364
```
365365

366-
=== "Javascript (jQuery)"
366+
=== "JavaScript (jQuery)"
367367

368368
```javascript
369369
$.ajax({

0 commit comments

Comments
 (0)