This commit is contained in:
parent
017b137f85
commit
279b9c5fc8
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@
|
|||
let windowResolution = '';
|
||||
|
||||
function updateResolution() {
|
||||
const realWidth = Math.round(screen.width * window.devicePixelRatio);
|
||||
const realHeight = Math.round(screen.height * window.devicePixelRatio);
|
||||
const realWidth = Math.round(screen.width);
|
||||
const realHeight = Math.round(screen.height);
|
||||
const windowWidth = Math.round(window.innerWidth * window.devicePixelRatio);
|
||||
const windowHeight = Math.round(window.innerHeight * window.devicePixelRatio);
|
||||
screenResolution = `${realWidth} x ${realHeight}`;
|
||||
|
|
Loading…
Reference in a new issue