mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix dynamic module import
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
| @@ -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); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user