mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +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) { |                     if (dataTransfer && dataTransfer.files && dataTransfer.files.length > 0) { | ||||||
|                         const files = [...dataTransfer.files]; // chrome has issue that dataTransfer.files empties after async operation |                         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, { |                         importService.uploadFiles(node.data.noteId, files, { | ||||||
|                             safeImport: true, |                             safeImport: true, | ||||||
|   | |||||||
| @@ -172,7 +172,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { | |||||||
|         this.watchdog.editor.model.document.on('change:data', () => this.spacedUpdate.scheduleUpdate()); |         this.watchdog.editor.model.document.on('change:data', () => this.spacedUpdate.scheduleUpdate()); | ||||||
|  |  | ||||||
|         if (glob.isDev && ENABLE_INSPECTOR) { |         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); |             CKEditorInspector.attach(this.watchdog.editor); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user