mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-13 18:16:48 +08:00
parsing input as int
This commit is contained in:
parent
33be51979c
commit
5591583f38
1 changed files with 1 additions and 1 deletions
|
@ -4233,7 +4233,7 @@ function updateKeytips() {
|
|||
|
||||
function applyMode2Popup() {
|
||||
let mode = $("#customMode2Popup").attr("mode");
|
||||
let val = $("#customMode2Popup input").val();
|
||||
let val = parseInt($("#customMode2Popup input").val());
|
||||
|
||||
if (mode == "time") {
|
||||
if (val !== null && !isNaN(val) && val >= 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue