undid an automatic reindent

This commit is contained in:
2026-06-30 20:17:33 +02:00
parent 9d768185b6
commit 6adefe7210
+5 -6
View File
@@ -41,9 +41,9 @@ function randomBool(probability) {
function clampNearest(n, mul) {
if (n > 0)
if(n > 0)
return Math.ceil(n / mul) * mul
else if (n < 0)
else if( n < 0)
return Math.floor(n / mul) * mul
else
return 0
@@ -58,12 +58,12 @@ function lerp(x, y, t) {
function debugPrint(title, value) {
if (!title) {
console.error(
`error[A0000]: this function takes 1 argument but 0 arguments were supplied
`error[A0000]: this function takes 1 argument but 0 arguments were supplied
--> unknown:0:0
|
0 | debugPrint()
| ^^^^^^^^^^-- argument #1 of type \`Any\` is missing`
)
)
return
}
@@ -146,7 +146,6 @@ function setVh() {
document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px")
}
function getEngine() {
if ("MozAppearance" in document.documentElement.style)
{ return "gecko" }
@@ -224,7 +223,7 @@ document.addEventListener("DOMContentLoaded", async function () {
}, false)
window.addEventListener("resize", function () {
window.addEventListener("resize", function() {
setVh()
calcPixelDensity()