From 388783233fde30aaf75bd30231d3b93eaf3a2598 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 21 Jun 2025 09:39:52 -0500 Subject: [PATCH] mix fix --- lib/aprs_web/live/map_live/index.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aprs_web/live/map_live/index.ex b/lib/aprs_web/live/map_live/index.ex index 882b24c..6572bc0 100644 --- a/lib/aprs_web/live/map_live/index.ex +++ b/lib/aprs_web/live/map_live/index.ex @@ -69,7 +69,7 @@ defmodule AprsWeb.MapLive.Index do defp maybe_start_geolocation(socket) do if geolocation_enabled?() do ip_for_geolocation = - if Mix.env() == :dev do + if Application.get_env(:aprs, AprsWeb.Endpoint)[:code_reloader] do # For testing geolocation in dev environment, use a public IP address. # This will be geolocated to Mountain View, CA. "8.8.8.8"