mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 21:44:45 +03:00
feat: add support for running es6
This commit is contained in:
1 parent
9609a67b1d
commit
5c28df9672
2 files changed
+2
-1
No files matched your search
@@ -11,6 +11,7 @@ intro: |
|
||||
A quick reference cheatsheet of what's new in JavaScript for ES2015, ES2016, ES2017, ES2018 and beyond
|
||||
plugins:
|
||||
- copyCode
|
||||
- runCode
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
language = 'typescript';
|
||||
}
|
||||
|
||||
const editorId = ['javascript', 'typescript', 'python', 'php'].includes(language)
|
||||
const editorId = ['js', 'javascript', 'typescript', 'python', 'php'].includes(language)
|
||||
? 'script'
|
||||
: ['css', 'scss'].includes(language)
|
||||
? 'style'
|
||||
|
||||
Reference in new issue
Block a user