Skip to content

Commit ca378a7

Browse files
committed
fixed a syntax issue and multiple variable deleration
1 parent 467ce46 commit ca378a7

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

dist/rapidoc-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

66 Bytes
Binary file not shown.

dist/report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/rapidoc-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/api-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,10 +1211,10 @@ export default class ApiRequest extends LitElement {
12111211
const contentType = tryResp.headers.get('content-type');
12121212
if (contentType) {
12131213
if (contentType.includes('json')) {
1214-
if (/charset=[^"']+/).test(contentType)) {
1214+
if ((/charset=[^"']+/).test(contentType)) {
12151215
const enc = contentType.split('charset=')[1];
12161216
const buffer = await tryResp.arrayBuffer();
1217-
const respJson = new TextDecoder(enc).decode(buffer);
1217+
respJson = new TextDecoder(enc).decode(buffer);
12181218
me.responseText = JSON.stringify(respJson, null, 2);
12191219
} else {
12201220
respJson = await tryResp.json();

0 commit comments

Comments
 (0)