bldrs-ai / Share

Share is a web-based BIM & CAD collaboration platform.
http://bldrs.ai
103 stars 30 forks source link

Sentry: Don't try to initialize WebGL context if not available #659

Open oo-bldrs opened 1 year ago

oo-bldrs commented 1 year ago

Most headless browsers do not have feature WebGL support yet the application tries to initialize it no matter what. This results in errors being deposited into Sentry each time a headless browser visits the page. (e.g. search engine crawling)

It would be useful if we could detect that the browser is lacking WebGL support and if it is, display a polite, friendly message and not attempt to initialize THREE and its dependents.

sentry-io[bot] commented 1 year ago

Sentry issue: SHARE-J