Skip to content

Commit

Permalink
feat: update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
AricGamma committed Dec 9, 2024
1 parent 39382bf commit 58afdc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker'
import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker'
import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker'

self.MonacoEnvironment = {
getWorker(_, label) {
;(self as any).MonacoEnvironment = {
getWorker(_: any, label: any) {
if (label === 'json') {
return new jsonWorker()
}
Expand Down

0 comments on commit 58afdc9

Please sign in to comment.