BetterDiscordApp-rauenzi/renderer/src/structs/screen.js

6 lines
309 B
JavaScript
Raw Normal View History

2019-06-19 05:09:49 +02:00
export default class Screen {
/** Document/window width */
static get width() {return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);}
2019-06-19 05:09:49 +02:00
/** Document/window height */
static get height() {return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);}
2019-06-19 05:09:49 +02:00
}