added pixelDensity recalculation on window resize

This commit is contained in:
2025-01-05 18:22:43 +01:00
parent c97d17b7a6
commit 667dc0da8a
2 changed files with 8 additions and 1 deletions
-1
View File
@@ -11,6 +11,5 @@ function calcPixelDensity() {
pxDensity = parseFloat(getComputedStyle(document.body).getPropertyValue("--pxDensity"))
console.log("pxDensity: " + getComputedStyle(document.body).getPropertyValue("--pxDensity"))
pxDensityDefined = true
}