diff --git a/assets/js/hooks.js b/assets/js/hooks.js index c8771ea..f4dc905 100644 --- a/assets/js/hooks.js +++ b/assets/js/hooks.js @@ -41,12 +41,14 @@ Hooks.Timer = { if (timeLeft <= 0) { clearInterval(this.timer); this.pushEvent("timer_live__completed", {}) + document.title = "Timer completed!"; NotificationsAPI.Send("⏲️ Timer completed!"); return; } timeLeft = Math.round((endTime - Date.now()) / 1000); timeLeftElement.innerText = this.formatTime(timeLeft); + document.title = `${this.formatTime(timeLeft)}`; }, 1000); }, diff --git a/lib/dash_web/components/layouts/root.html.heex b/lib/dash_web/components/layouts/root.html.heex index 8780716..30b42cf 100644 --- a/lib/dash_web/components/layouts/root.html.heex +++ b/lib/dash_web/components/layouts/root.html.heex @@ -9,9 +9,7 @@ - <.live_title suffix=" - Dash"> - {assigns[:page_title] || "Dash"} - + Dash diff --git a/mix.exs b/mix.exs index 158822b..adcc90e 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,8 @@ defmodule Dash.MixProject do elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), - deps: deps() + deps: deps(), + listeners: [Phoenix.CodeReloader] ] end