Fix socket connectivity on production.
Remove debug code.
This commit is contained in:
parent
510cdcbc9c
commit
eb9fd09a2b
4 changed files with 4 additions and 4 deletions
|
@ -12,8 +12,8 @@ channel.join()
|
|||
let progressBar = document.getElementById("morse-progress")
|
||||
|
||||
channel.on("update", (content) => {
|
||||
console.log(content["value"])
|
||||
progressBar.value = content["value"]
|
||||
progressBar.innerHTML = content["value"]
|
||||
});
|
||||
|
||||
export default socket
|
||||
|
|
|
@ -2,6 +2,6 @@ defmodule UiWeb.MorseProgressChannel do
|
|||
use UiWeb, :channel
|
||||
|
||||
def join(channel_name, _params, socket) do
|
||||
{:ok, %{hi: :there}, socket}
|
||||
{:ok, channel: channel_name, socket}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue