summaryrefslogtreecommitdiff
path: root/priv/room.html.eex
diff options
context:
space:
mode:
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>