mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
refactor: move focus call to the focus file
This commit is contained in:
parent
a587efad69
commit
3f8f1b9fd6
2 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ if (Misc.isDevEnvironment()) {
|
|||
}
|
||||
|
||||
void UpdateConfig.loadFromLocalStorage();
|
||||
Focus.set(true, true);
|
||||
|
||||
$(document).ready(() => {
|
||||
Misc.loadCSS("/css/slimselect.min.css", true);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue