MCPcopy
hub / github.com/4ian/GDevelop / getOrientation

Method getOrientation

newIDE/app/src/Utils/Window.js:432–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 3

Core.jsFile · 0.80

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected