From 571cb6d0eb53b3efd6c36f13e2b69e7342cadf2c Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 9 Jan 2023 22:32:49 +0100 Subject: [PATCH] fix dynamic module import --- src/public/app/widgets/note_tree.js | 2 +- src/public/app/widgets/type_widgets/editable_text.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 55b85332b..b471d7acd 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -460,7 +460,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { if (dataTransfer && dataTransfer.files && dataTransfer.files.length > 0) { const files = [...dataTransfer.files]; // chrome has issue that dataTransfer.files empties after async operation - const importService = await import('../services/import'); + const importService = await import('../services/import.js'); importService.uploadFiles(node.data.noteId, files, { safeImport: true, diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js index 46bf218b2..67003dc68 100644 --- a/src/public/app/widgets/type_widgets/editable_text.js +++ b/src/public/app/widgets/type_widgets/editable_text.js @@ -172,7 +172,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { this.watchdog.editor.model.document.on('change:data', () => this.spacedUpdate.scheduleUpdate()); if (glob.isDev && ENABLE_INSPECTOR) { - await import(/* webpackIgnore: true */'../../../libraries/ckeditor/inspector'); + await import(/* webpackIgnore: true */'../../../libraries/ckeditor/inspector.js'); CKEditorInspector.attach(this.watchdog.editor); } }