refactor: move focus call to the focus file

This commit is contained in:
Miodec 2024-06-12 17:46:27 +02:00
parent a587efad69
commit 3f8f1b9fd6
2 changed files with 2 additions and 1 deletions

View file

@ -32,7 +32,6 @@ if (Misc.isDevEnvironment()) {
}
void UpdateConfig.loadFromLocalStorage();
Focus.set(true, true);
$(document).ready(() => {
Misc.loadCSS("/css/slimselect.min.css", true);

View file

@ -8,6 +8,8 @@ import * as TimerProgress from "./timer-progress";
const unfocusPx = 3;
let state = false;
set(true, true);
export function set(foc: boolean, withCursor = false): void {
if (foc && !state) {
state = true;