cowbell/splittypie

View on GitHub
app/last-event.html

Summary

Maintainability
Test Coverage
<script>
  const lastEventId = window.localStorage.getItem("lastEventId");

  if (lastEventId && window.location.pathname === "/") {
    window.location = "/" + lastEventId;
  }
</script>