From b38974f6f6dce969adff4c0a1d9ecccafe4ee5a7 Mon Sep 17 00:00:00 2001 From: miguel <31931809+miguelvaca@users.noreply.github.com> Date: Mon, 25 Oct 2021 11:04:46 +1100 Subject: [PATCH] FIX bug on Windows Firefox. n_turns type forced to int to access global LUT --- magloop.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magloop.html b/magloop.html index e1ce82d..873014b 100644 --- a/magloop.html +++ b/magloop.html @@ -436,7 +436,7 @@ function getProximityResFromSpacing(spacing_ratio) { // Use the proximityResistance look-up table and interpolate values depending on the spacing ratio and the number of turns. var retval = 0.0; - var n_turns = loop_turns_slider.value; + var n_turns = 1 * loop_turns_slider.value; var i = 0; for (i = 0; i < (proximityResistance[0].length-1); i++) { if(spacing_ratio <= proximityResistance[0][i+1]) {