Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Nov 1, 2023
1 parent f82e48a commit afa7dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/launch_cart_web/controllers/page_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ defmodule LaunchCartWeb.PageController do
end

def support(conn, _params) do
url = "#{String.replace(Endpoint.url(), "http:", "ws:")}/socket"
url = Endpoint.url() |> String.replace("http:", "ws:") |> String.replace("https:", "wss:")
form_id = System.get_env("SUPPORT_FORM_ID")
render(conn, "support.html", url: url, form_id: form_id)
render(conn, "support.html", url: "#{url}/socket", form_id: form_id)
end

def fake_store(conn, %{"store_id" => store_id}) do
Expand Down

0 comments on commit afa7dbd

Please sign in to comment.