Commit 46fc6f5
authored
fix: Catch errors when detecting if WebGL is supported (#2426)
- In some headless environments, `document` is `undefined` and this
would throw an uncaught exception
- Just catch the exception and return `false`
- Now this matches the same check that was added to the plotly-express
plugin: deephaven/deephaven-plugins#11471 parent f006bca commit 46fc6f5
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
0 commit comments