mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix bug
This commit is contained in:
		
							parent
							
								
									e378d9f645
								
							
						
					
					
						commit
						d19f044961
					
				| @ -55,6 +55,7 @@ function ScriptApi(startNote, currentNote) { | ||||
|         getInstanceName: () => window.glob.instanceName, | ||||
|         runOnServer, | ||||
|         formatDateISO: utils.formatDateISO, | ||||
|         parseDate: utils.parseDate, | ||||
|         showMessage: utils.showMessage, | ||||
|         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']; | ||||
| 
 | ||||
| async function createNote(parentNoteId, noteTitle, noteText) { | ||||
|     return await noteService.createNewNote(parentNoteId, { | ||||
|     return (await noteService.createNewNote(parentNoteId, { | ||||
|         title: noteTitle, | ||||
|         content: noteText, | ||||
|         target: 'into', | ||||
|         isProtected: false | ||||
|     }); | ||||
|     })).note; | ||||
| } | ||||
| 
 | ||||
| async function getNoteStartingWith(parentNoteId, startsWith) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner