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,9 +265,12 @@ const Layout = ({ children }) => {
|
||||
pattern.toCanvas(bgCanvasRef.current);
|
||||
}
|
||||
} catch (error) {
|
||||
// Canvas/trianglify not available, skip background generation
|
||||
// Canvas/trianglify not available, skip background generation silently
|
||||
// Only log in development for debugging
|
||||
if (import.meta.env.DEV) {
|
||||
console.warn("Could not generate Trianglify background:", error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
generateBackground();
|
||||
|
||||
@@ -81,9 +81,12 @@ const Login = () => {
|
||||
pattern.toCanvas(canvasRef.current);
|
||||
}
|
||||
} catch (error) {
|
||||
// Canvas/trianglify not available, skip background generation
|
||||
// Canvas/trianglify not available, skip background generation silently
|
||||
// Only log in development for debugging
|
||||
if (import.meta.env.DEV) {
|
||||
console.warn("Could not generate Trianglify background:", error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
generateBackground();
|
||||
|
||||
Reference in New Issue
Block a user