summaryrefslogtreecommitdiff
path: root/priv/home.html.eex
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-28 19:40:14 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-28 19:48:19 +0000
commit78808161c6b8726be5e18427a5da4328ab1fa26f (patch)
treec7911b740ce98ad250937122dd62ba941856da98 /priv/home.html.eex
parentcfa9a1c331c0f4912107434b185d3f9157044638 (diff)
downloadmediasync-78808161c6b8726be5e18427a5da4328ab1fa26f.tar
mediasync-78808161c6b8726be5e18427a5da4328ab1fa26f.tar.gz
mediasync-78808161c6b8726be5e18427a5da4328ab1fa26f.zip
Refactor
Diffstat (limited to 'priv/home.html.eex')
-rw-r--r--priv/home.html.eex10
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>