From 0c923733fc29caedda6f852e8623f7bc600bdfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ho=C5=99ava?= Date: Thu, 6 Jun 2024 02:28:06 -0700 Subject: [PATCH] replaced Number.isNaN() with globalThis.isNaN() --- repo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo.js b/repo.js index adde821..0e93add 100644 --- a/repo.js +++ b/repo.js @@ -74,7 +74,7 @@ function calculate_all(){ function power(value, id){ let power = +document.getElementById(id).value; - if(Number.isNaN(power)){ + if(globalThis.isNaN(power)){ power = 0; } return Math.pow(