File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,9 @@ export class DocumentRenderer {
61
61
this . previousCanvasWidth = this . canvas . width
62
62
this . previousCanvasHeight = this . canvas . height
63
63
64
+ const supportsWebGL2 = 'WebGL2RenderingContext' in window
64
65
// Only initialize stats and DOM-related features in main thread
65
- if ( ! externalCanvas ) {
66
+ if ( ! externalCanvas && supportsWebGL2 ) {
66
67
this . stats = new TopRightStats ( this . canvas as HTMLCanvasElement , this . config . statsVisible )
67
68
this . setupFpsTracking ( )
68
69
}
Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ function connectWebSocket () {
255
255
256
256
const wsUrl = getWebSocketUrl ( )
257
257
if ( ! wsUrl ) {
258
- console . log ( 'WebSocket server not configured' )
259
258
return
260
259
}
261
260
Original file line number Diff line number Diff line change @@ -289,11 +289,6 @@ export default () => {
289
289
/>
290
290
</ div >
291
291
) : null }
292
- { ! lockConnect && < >
293
- < Button className = "button" style = { { width : '204px' } } onClick = { disconnect } >
294
- { fsState . inMemorySave && ! fsState . syncFs && ! fsState . isReadonly ? 'Save & Quit' : 'Disconnect & Reset' }
295
- </ Button >
296
- </ > }
297
292
{ ( noConnection || appConfig ?. alwaysReconnectButton ) && (
298
293
< div className = { styles . row } >
299
294
< Button className = "button" style = { { width : appConfig ?. reportBugButtonWithReconnect ? '98px' : '204px' } } onClick = { reconnectReload } >
@@ -343,6 +338,11 @@ export default () => {
343
338
) }
344
339
</ div >
345
340
) }
341
+ { ! lockConnect && < >
342
+ < Button className = "button" style = { { width : '204px' } } onClick = { disconnect } >
343
+ { fsState . inMemorySave && ! fsState . syncFs && ! fsState . isReadonly ? 'Save & Quit' : 'Disconnect & Reset' }
344
+ </ Button >
345
+ </ > }
346
346
</ div >
347
347
< LoadingTimer />
348
348
</ Screen >
You can’t perform that action at this time.
0 commit comments