summaryrefslogtreecommitdiff
path: root/priv/room.html.eex
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-11-02 18:51:32 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-11-02 18:54:19 +0000
commitbbbf3ad38f649008e58e2eb11f0bee96722243c7 (patch)
tree6b0d61277b702ce31da6c65073a66faab3d650d7 /priv/room.html.eex
parentef667f16ef26588320e8157078b5bc1ac32adae2 (diff)
downloadmediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.tar
mediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.tar.gz
mediasync-bbbf3ad38f649008e58e2eb11f0bee96722243c7.zip
Remove Discord Activity code from this branch
Diffstat (limited to 'priv/room.html.eex')
-rw-r--r--priv/room.html.eex17
1 files changed, 2 insertions, 15 deletions
diff --git a/priv/room.html.eex b/priv/room.html.eex
index c3ae92e..3b15b74 100644
--- a/priv/room.html.eex
+++ b/priv/room.html.eex
@@ -1,18 +1,7 @@
<!DOCTYPE html>
<%
-import Mediasync.Constants
-
-{video_info, websocket_path, state_url, home_button_url, show_snap_button?} = if in_discord_activity? do
- {
- %{video_info | url: "/.proxy/room/#{room_id}/video?#{query_param_discord_activity_inner()}"},
- "/.proxy/room/#{room_id}/websocket?#{query_param_discord_activity_inner()}",
- "/.proxy/room/#{room_id}/state.json?#{query_param_discord_activity_inner()}",
- "/.proxy/?#{query_param_discord_activity_inner()}",
- true
- }
-else
- {video_info, "/room/#{room_id}/websocket", "/room/#{room_id}/state.json", nil, false}
-end
+{websocket_path, state_url} =
+ {"/room/#{room_id}/websocket", "/room/#{room_id}/state.json"}
%>
<html lang="en">
@@ -82,10 +71,8 @@ end
<script src="/static/video.js/video.min.js"></script>
<script>
const WEBSOCKET_URL = location.origin.replace(/^http/, "ws") + "<%= websocket_path %>";
- const HOME_BUTTON_URL = <%= if home_button_url, do: ~s("#{home_button_url}"), else: "null" %>;
const STATE_ELEMENT_INITIAL_TEXT = "loading...";
const STATE_URL = "<%= state_url %>";
- const SHOW_SNAP_BUTTON = <%= show_snap_button? %>;
</script>
<script src="/static/room/main.js"></script>
<script src="/static/room/displayState.js"></script>