mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix(electron): auto-reload for static assets
This commit is contained in:
		| @@ -17,7 +17,7 @@ if (isDev) { | ||||
|     const debounce = (await import("debounce")).default; | ||||
|     const debouncedReloadFrontend = debounce(() => reloadFrontend("source code change"), 200); | ||||
|     chokidar | ||||
|         .watch(isElectron ? "dist/src/public" : "src/public") | ||||
|         .watch("src/public") | ||||
|         .on("add", debouncedReloadFrontend) | ||||
|         .on("change", debouncedReloadFrontend) | ||||
|         .on("unlink", debouncedReloadFrontend); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user