mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(export/share): asset path in prod
This commit is contained in:
		
							parent
							
								
									3a55490bbf
								
							
						
					
					
						commit
						6d446c5b27
					
				@ -105,10 +105,8 @@ function getShareThemeAssets(nameWithExtension: string) {
 | 
				
			|||||||
        path = join(RESOURCE_DIR, "images", nameWithExtension);
 | 
					        path = join(RESOURCE_DIR, "images", nameWithExtension);
 | 
				
			||||||
    } else if (isDev) {
 | 
					    } else if (isDev) {
 | 
				
			||||||
        path = join(getResourceDir(), "..", "..", "client", "dist", "src", nameWithExtension);
 | 
					        path = join(getResourceDir(), "..", "..", "client", "dist", "src", nameWithExtension);
 | 
				
			||||||
    }
 | 
					    } else {
 | 
				
			||||||
 | 
					        path = join(getResourceDir(), "public", "src", nameWithExtension);
 | 
				
			||||||
    if (!path) {
 | 
					 | 
				
			||||||
        throw new Error("Not yet defined.");
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return fs.readFileSync(path);
 | 
					    return fs.readFileSync(path);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user