Skip to content

Commit 8d24513

Browse files
committed
Prettify the JavaScript code
1 parent 5946498 commit 8d24513

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ async function showFile(source, file, revision, selectedLine) {
144144
language = "cpp";
145145
} else if (file.path.endsWith("c")) {
146146
language = "c";
147-
} else if (file.path.endsWith("js") || file.path.endsWith("jsm") || file.path.endsWith("mjs") || file.path.endsWith("jsx")) {
147+
} else if (
148+
file.path.endsWith("js") ||
149+
file.path.endsWith("jsm") ||
150+
file.path.endsWith("mjs") ||
151+
file.path.endsWith("jsx")
152+
) {
148153
language = "javascript";
149154
} else if (file.path.endsWith("css")) {
150155
language = "css";

0 commit comments

Comments
 (0)