From cd794243a5bba358d995e26ba024268e7d5d3f85 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Fri, 26 Jul 2024 19:50:14 +0530 Subject: Add Discord Activity functionality (mostly) + general improvements --- priv/home.html.eex | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'priv/home.html.eex') diff --git a/priv/home.html.eex b/priv/home.html.eex index 5936e6c..4b6accd 100644 --- a/priv/home.html.eex +++ b/priv/home.html.eex @@ -1,3 +1,10 @@ +<% +{form_action_base, form_action_suffix} = case mode do + :discord_activity -> {"/.proxy/", "?#{Mediasync.Constants.query_param_discord_activity_inner()}"} + :normal -> {"/", ""} + _ -> raise ArgumentError +end +%> @@ -9,7 +16,7 @@ -
+ checkURLInputValidity(e.target)); })(); -- cgit v1.2.3-57-g22cb