You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
320 B

  1. <script lang="ts">
  2. import { onMount } from "svelte";
  3. import markStale from "../stores/markStale";
  4. function handleFocus() {
  5. markStale("*");
  6. }
  7. onMount(() => {
  8. window.addEventListener("focus", handleFocus);
  9. return () => {
  10. window.removeEventListener("focus", handleFocus);
  11. }
  12. })
  13. </script>