mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix bug
This commit is contained in:
		| @@ -55,6 +55,7 @@ function ScriptApi(startNote, currentNote) { | |||||||
|         getInstanceName: () => window.glob.instanceName, |         getInstanceName: () => window.glob.instanceName, | ||||||
|         runOnServer, |         runOnServer, | ||||||
|         formatDateISO: utils.formatDateISO, |         formatDateISO: utils.formatDateISO, | ||||||
|  |         parseDate: utils.parseDate, | ||||||
|         showMessage: utils.showMessage, |         showMessage: utils.showMessage, | ||||||
|         showError: utils.showError |         showError: utils.showError | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -15,12 +15,12 @@ const DAYS = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Satur | |||||||
| const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December']; | const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December']; | ||||||
|  |  | ||||||
| async function createNote(parentNoteId, noteTitle, noteText) { | async function createNote(parentNoteId, noteTitle, noteText) { | ||||||
|     return await noteService.createNewNote(parentNoteId, { |     return (await noteService.createNewNote(parentNoteId, { | ||||||
|         title: noteTitle, |         title: noteTitle, | ||||||
|         content: noteText, |         content: noteText, | ||||||
|         target: 'into', |         target: 'into', | ||||||
|         isProtected: false |         isProtected: false | ||||||
|     }); |     })).note; | ||||||
| } | } | ||||||
|  |  | ||||||
| async function getNoteStartingWith(parentNoteId, startsWith) { | async function getNoteStartingWith(parentNoteId, startsWith) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user