mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Update integrate-esm.md
typo switch ts languages to js
This commit is contained in:
parent
9e80719ed7
commit
3af6ccf2fb
1 changed files with 2 additions and 2 deletions
|
|
@ -228,10 +228,10 @@ monaco.editor.create(document.getElementById('container'), {
|
|||
> you will encounter cross-origin errors.
|
||||
>
|
||||
> In this scenario, you can use a blob like this:
|
||||
> ```ts
|
||||
> ```js
|
||||
> self.MonacoEnvironment = {
|
||||
> getWorker(_, label) {
|
||||
> function createBlobWorker(workerModule: any) {
|
||||
> function createBlobWorker(workerModule) {
|
||||
> const code = workerModule.toString();
|
||||
> const blob = new Blob([code], { type: 'application/javascript' });
|
||||
> const blobUrl = URL.createObjectURL(blob);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue