fix template editor monaco workers
This commit is contained in:
@@ -387,7 +387,7 @@
|
||||
// @ts-ignore
|
||||
self.MonacoEnvironment = {
|
||||
getWorker: function (_moduleId: any, label: string) {
|
||||
if (label == 'typescript') {
|
||||
if (label == 'typescript' || label == 'javascript') {
|
||||
return new tsWorker()
|
||||
} else {
|
||||
return new editorWorker()
|
||||
|
||||
Reference in New Issue
Block a user