mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix OPML import, closes #1333
This commit is contained in:
		
							parent
							
								
									9f424836e2
								
							
						
					
					
						commit
						c671b0a345
					
				@ -11,8 +11,8 @@ const htmlSanitizer = require('../html_sanitizer');
 | 
			
		||||
 * @param {Note} parentNote
 | 
			
		||||
 * @return {Promise<*[]|*>}
 | 
			
		||||
 */
 | 
			
		||||
function importOpml(taskContext, fileBuffer, parentNote) {
 | 
			
		||||
    const xml = new Promise(function(resolve, reject)
 | 
			
		||||
async function importOpml(taskContext, fileBuffer, parentNote) {
 | 
			
		||||
    const xml = await new Promise(function(resolve, reject)
 | 
			
		||||
    {
 | 
			
		||||
        parseString(fileBuffer, function (err, result) {
 | 
			
		||||
            if (err) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user