mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-14 10:55:43 +00:00
fix: suppress Trianglify errors in production to reduce console noise
This commit is contained in:
@@ -265,8 +265,11 @@ const Layout = ({ children }) => {
|
|||||||
pattern.toCanvas(bgCanvasRef.current);
|
pattern.toCanvas(bgCanvasRef.current);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Canvas/trianglify not available, skip background generation
|
// Canvas/trianglify not available, skip background generation silently
|
||||||
console.warn("Could not generate Trianglify background:", error);
|
// Only log in development for debugging
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
console.warn("Could not generate Trianglify background:", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -81,8 +81,11 @@ const Login = () => {
|
|||||||
pattern.toCanvas(canvasRef.current);
|
pattern.toCanvas(canvasRef.current);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Canvas/trianglify not available, skip background generation
|
// Canvas/trianglify not available, skip background generation silently
|
||||||
console.warn("Could not generate Trianglify background:", error);
|
// Only log in development for debugging
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
console.warn("Could not generate Trianglify background:", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user