diff options
Diffstat (limited to 'priv/home.html.eex')
-rw-r--r-- | priv/home.html.eex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/priv/home.html.eex b/priv/home.html.eex index 4b6accd..87b0d5d 100644 --- a/priv/home.html.eex +++ b/priv/home.html.eex @@ -1,11 +1,11 @@ +<!DOCTYPE html> <% -{form_action_base, form_action_suffix} = case mode do - :discord_activity -> {"/.proxy/", "?#{Mediasync.Constants.query_param_discord_activity_inner()}"} - :normal -> {"/", ""} - _ -> raise ArgumentError +import Mediasync.Constants +{form_action_base, form_action_suffix} = case in_discord_activity? do + true -> {"/.proxy/", "?#{query_param_discord_activity_inner()}"} + false -> {"/", ""} end %> -<!DOCTYPE html> <html lang="en"> <head> |