Skip to content

Commit 6792b09

Browse files
author
Loïc Mangeonjean
committed
fix: do not prevent loading of extension of iframe html
1 parent 6346783 commit 6792b09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ window.MonacoEnvironment = {
3131
if (worker != null) {
3232
return worker.url.toString()
3333
}
34-
throw new Error(`Unimplemented worker ${label} (${moduleId})`)
34+
return undefined
3535
},
3636
getWorkerOptions(moduleId, label) {
3737
const worker = workers[label]
3838
if (worker != null) {
3939
return worker.options
4040
}
41-
throw new Error(`Unimplemented worker ${label} (${moduleId})`)
41+
return undefined
4242
}
4343
}

0 commit comments

Comments
 (0)