returning if previous and current is the same

This commit is contained in:
Miodec 2022-01-08 17:39:14 +01:00
parent a7b255cdc1
commit f911673f5d

View file

@ -44,6 +44,7 @@ export function hide() {
}
export function update(previous, current) {
if (previous == current) return;
$("#top .config .mode .text-button").removeClass("active");
$("#top .config .mode .text-button[mode='" + current + "']").addClass(
"active"