From c50811bc2bd6168e52581113d9fdc5045068a4a7 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sun, 9 May 2021 14:13:24 +0200 Subject: Fix NaN bug --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 5fa8acf..ae7f1d3 100644 --- a/main.js +++ b/main.js @@ -22,8 +22,8 @@ function compute() const s_frame = Math.trunc(s_time * fps); const e_frame = Math.trunc(e_time * fps); const time = time_format(seconds); - const mod_message = `Mod Note: Retimed (Start Frame: ${s_frame}, End Frame: ${e_frame}, FPS: ${ - fps}, Total Time: ${time})`; + const mod_message = `Mod Note: Retimed (Start Frame: ${s_frame}, End Frame: ${ + e_frame}, FPS: ${fps}, Total Time: ${time})`; document.getElementById("time").value = time; document.getElementById("mod_message").disabled = false; @@ -86,7 +86,7 @@ function parse_time(event) } /* If cmt isn't available fallback to lct, also allow raw numbers */ - if (!(inp = dinfo.cmt) && !(inp = dinfo.lct) && typeof ((inp = dinfo)) !== "number") { + if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof ((input = dinfo)) !== "number") { document.getElementById(event.target.id).value = ""; return; } -- cgit v1.2.3