Skip to content

Commit ffad826

Browse files
author
Ives van Hoorne
committed
Fix
1 parent 8fba20b commit ffad826

File tree

1 file changed

+3
-2
lines changed
  • packages/app/src/app/components/CodeEditor/Monaco

1 file changed

+3
-2
lines changed

packages/app/src/app/components/CodeEditor/Monaco/mode.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const requireAMDModule = (paths, monaco) =>
1+
const requireAMDModule = paths =>
22
new Promise(resolve => window.require(paths, () => resolve()));
3-
export default async (title: string) => {
3+
4+
export default async (title: string, monaco) => {
45
if (title == null) return 'javascript';
56

67
const kind = title.match(/\.([^.]*)$/);

0 commit comments

Comments
 (0)