Skip to content

Commit

Permalink
Update webclient/app/composables/webglSupport.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Aug 6, 2024
1 parent 2f86680 commit db45bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webclient/app/composables/webglSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit db45bbb

Please sign in to comment.