diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-05-09 14:13:24 +0200 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-05-09 14:13:24 +0200 |
commit | c50811bc2bd6168e52581113d9fdc5045068a4a7 (patch) | |
tree | b58c9551c896c1f8e71e92a9e0517a07e82b4598 | |
parent | 2bf919967114cb9fac4ffd1351ca53d438dfb3dd (diff) |
Fix NaN bug
-rw-r--r-- | main.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |