From ec57c12630a8d38cd47557294526fa55f268bfa7 Mon Sep 17 00:00:00 2001 From: Coen Date: Thu, 15 Apr 2021 16:26:20 +0200 Subject: [PATCH] If window is undefined default to crispEdges --- src/additional-components/MiniMap/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/additional-components/MiniMap/index.tsx b/src/additional-components/MiniMap/index.tsx index 563ae2e2..dbb86f6c 100644 --- a/src/additional-components/MiniMap/index.tsx +++ b/src/additional-components/MiniMap/index.tsx @@ -64,7 +64,7 @@ const MiniMap = ({ const y = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset; const width = viewWidth + offset * 2; const height = viewHeight + offset * 2; - const shapeRendering = !!window.chrome ? "crispEdges" : "geometricPrecision"; + const shapeRendering = (typeof window === "undefined" || !!window.chrome) ? "crispEdges" : "geometricPrecision"; return (