()
| 430 | } |
| 431 | |
| 432 | static getOrientation(): 'portrait' | 'landscape' { |
| 433 | try { |
| 434 | return window.screen.orientation.type.split('-')[0]; |
| 435 | } catch (error) { |
| 436 | console.warn('An error occurred when reading screen orientation', error); |
| 437 | return 'landscape'; |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | static hasMainMenu(): any { |
| 442 | return !!electron; |
no test coverage detected