Commit code with double quotes instead of single quotes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const mimeToMode = {
|
||||
'text/plain': 'plain_text',
|
||||
'text/html': 'html',
|
||||
'application/xml': 'xml',
|
||||
'application/hal+json': 'json',
|
||||
'application/json': 'json',
|
||||
"text/plain": "plain_text",
|
||||
"text/html": "html",
|
||||
"application/xml": "xml",
|
||||
"application/hal+json": "json",
|
||||
"application/json": "json",
|
||||
}
|
||||
|
||||
export function getEditorLangForMimeType(mimeType) {
|
||||
return mimeToMode[mimeType] || 'plain_text'
|
||||
return mimeToMode[mimeType] || "plain_text"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user