Browse Source

remove time limit from FocusHandler.

main
Gisle Aune 4 years ago
parent
commit
2452f4d52c
  1. 13
      svelte-ui/src/components/FocusHandler.svelte

13
svelte-ui/src/components/FocusHandler.svelte

@ -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("*");
}

Loading…
Cancel
Save