mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
reduce caching errors on test env (#612)
Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
parent
33d7bc3758
commit
7d4469418b
1 changed files with 1 additions and 0 deletions
|
@ -192,6 +192,7 @@ export default function initializeHandlers({ notifyMainWindow }: HandlerOptions)
|
|||
|
||||
ipcMain.handle("cache-image", async (_event, url) => {
|
||||
try {
|
||||
if (process.env.NODE_ENV === "test") return url;
|
||||
log.info("caching:", url);
|
||||
const cachedImagePath = await cacheImage(url);
|
||||
return cachedImagePath;
|
||||
|
|
Loading…
Reference in a new issue