9 lines
228 B
JavaScript
9 lines
228 B
JavaScript
export class ScreenAdapter {
|
|
static get viewportRatio() {
|
|
return window.innerWidth / window.innerHeight;
|
|
}
|
|
static isLandscape() {
|
|
return window.matchMedia("(orientation: landscape)").matches;
|
|
}
|
|
}
|