remove time limit from FocusHandler.
This commit is contained in:
@@ -1,19 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import goalStore, { fpGoalStore } from "../stores/goal";
|
||||
import logStore from "../stores/logs";
|
||||
import markStale from "../stores/markStale";
|
||||
import projectStore, { fpProjectStore } from "../stores/project";
|
||||
|
||||
let lastFocus = new Date();
|
||||
import markStale from "../stores/markStale";
|
||||
|
||||
function handleFocus() {
|
||||
if (Date.now() - lastFocus.getTime() < 60000) {
|
||||
return;
|
||||
}
|
||||
|
||||
lastFocus = new Date();
|
||||
|
||||
markStale("*");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user