We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3034112 commit 356815aCopy full SHA for 356815a
packages/app/src/app/utils/prettify.js
@@ -15,10 +15,6 @@ function getMode(title: string) {
15
return 'typescript';
16
}
17
18
- if (/\.json$/.test(title)) {
19
- return 'babylon';
20
- }
21
-
22
if (/\.css$/.test(title)) {
23
return 'postcss';
24
@@ -132,7 +128,7 @@ export default function prettify(
132
128
133
129
return new Promise((resolve, reject) => {
134
130
if (!mode) {
135
- reject({ error: 'No mode found for prettify' });
131
+ resolve(getCode());
136
return;
137
138
0 commit comments