mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
removed element update
This commit is contained in:
parent
a18774878f
commit
db65d9d257
1 changed files with 0 additions and 7 deletions
|
|
@ -982,15 +982,8 @@ export function setTimeConfig(
|
|||
|
||||
const newTime = isNaN(time) || time < 0 ? DefaultConfig.time : time;
|
||||
|
||||
$("#top .config .time .textButton").removeClass("active");
|
||||
|
||||
const timeCustom = ![15, 30, 60, 120].includes(newTime) ? "custom" : newTime;
|
||||
|
||||
config.time = newTime;
|
||||
|
||||
$("#top .config .time .textButton[timeConfig='" + timeCustom + "']").addClass(
|
||||
"active"
|
||||
);
|
||||
saveToLocalStorage("time", nosave);
|
||||
ConfigEvent.dispatch("time", config.time);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue