From fcfa0e4b0338235601a98725f8a0c9069c8efe72 Mon Sep 17 00:00:00 2001 From: David Chatel Date: Thu, 3 Apr 2025 08:39:33 +0200 Subject: [PATCH] more resolutions options --- web/node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/node.js b/web/node.js index 0d1188a..6f597da 100644 --- a/web/node.js +++ b/web/node.js @@ -47,8 +47,8 @@ app.registerExtension({ for (let i = 0; i < x.length; i++) { for (let j = 0; j < y.length; j++) { - if (x[i] >= 360 && y[j] >= 360 && x[i] / y[j] === ratio && Math.round(lastX / x[i] * 100) / 100 === lastX / x[i]) { - options.push(`${x[i]}x${y[j]}: ${lastX / x[i]}`); + if (x[i] >= 360 && y[j] >= 360 && x[i] / y[j] === ratio) { + options.push(`${x[i]}x${y[j]}: ${Math.round(lastX / x[i] * 100) / 100}`); } } }