diff options
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/codeeditor.js | 2 | ||||
-rw-r--r-- | web_src/js/features/dropzone.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js index f533ea9d8f..d4fd303fbf 100644 --- a/web_src/js/features/codeeditor.js +++ b/web_src/js/features/codeeditor.js @@ -45,7 +45,7 @@ function getLanguage(filename) { function updateEditor(monaco, editor, filename, lineWrapExts) { editor.updateOptions(getFileBasedOptions(filename, lineWrapExts)); const model = editor.getModel(); - const language = model.getModeId(); + const language = model.getLanguageId(); const newLanguage = getLanguage(filename); if (language !== newLanguage) monaco.editor.setModelLanguage(model, newLanguage); } diff --git a/web_src/js/features/dropzone.js b/web_src/js/features/dropzone.js index f3c3a1415f..1c80fb778c 100644 --- a/web_src/js/features/dropzone.js +++ b/web_src/js/features/dropzone.js @@ -3,6 +3,5 @@ export default async function createDropzone(el, opts) { import(/* webpackChunkName: "dropzone" */'dropzone'), import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'), ]); - Dropzone.autoDiscover = false; return new Dropzone(el, opts); } |