From db45bbb2ed8f2355d2782789d8eadbaf88b4ba34 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 6 Aug 2024 03:54:08 +0200 Subject: [PATCH] Update webclient/app/composables/webglSupport.ts --- webclient/app/composables/webglSupport.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webclient/app/composables/webglSupport.ts b/webclient/app/composables/webglSupport.ts index 82db758d4..259c39b96 100644 --- a/webclient/app/composables/webglSupport.ts +++ b/webclient/app/composables/webglSupport.ts @@ -2,7 +2,8 @@ function supportsWebgl(): boolean { try { const canvas = document.createElement("canvas"); return !!window.WebGLRenderingContext && !!(canvas.getContext("webgl") || canvas.getContext("experimental-webgl")); - } catch (_e) { + } catch (e) { + console.error("cannot construct webglcontext (needed to render the map) because", e) return false; } }