mirror of
				https://github.com/notion-enhancer/notion-enhancer.git
				synced 2025-11-01 06:38:08 +11:00 
			
		
		
		
	fix #684: normalise target paths on windows
This commit is contained in:
		
							parent
							
								
									4f222a3b73
								
							
						
					
					
						commit
						442d6d3427
					
				| @ -68,7 +68,7 @@ export default async function ( | |||||||
|       .map((file) => file.path) |       .map((file) => file.path) | ||||||
|       .filter((file) => file.endsWith('.js') && !file.includes('node_modules')); |       .filter((file) => file.endsWith('.js') && !file.includes('node_modules')); | ||||||
|     for (const file of notionFiles) { |     for (const file of notionFiles) { | ||||||
|       const target = file.slice(status.executable.length + 1, -3), |       const target = file.slice(status.executable.length + 1, -3).replace(/\\/g, '/'), | ||||||
|         replacer = path.resolve(`${__dirname(import.meta)}/replacers/${target}.mjs`); |         replacer = path.resolve(`${__dirname(import.meta)}/replacers/${target}.mjs`); | ||||||
|       if (fs.existsSync(replacer)) { |       if (fs.existsSync(replacer)) { | ||||||
|         await (await import(`./replacers/${target}.mjs`)).default(file); |         await (await import(`./replacers/${target}.mjs`)).default(file); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user