Skip to content

Commit 9498f12

Browse files
authored
Update deps. Bump version to 0.3.0 (#4)
1 parent ef2b69e commit 9498f12

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In most cases you can skip this step as `Phoenix` comes with `LiveDashboard` ena
1919
```elixir
2020
def deps do
2121
[
22-
{:ex_webrtc_dashboard, "~> 0.2.0"}
22+
{:ex_webrtc_dashboard, "~> 0.3.0"}
2323
]
2424
end
2525
```

lib/ex_webrtc_dashboard.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule ExWebRTCDashboard do
3535

3636
nav == nil ->
3737
to = live_dashboard_path(socket, socket.assigns.page, nav: List.first(Map.keys(pc_pids)))
38-
{:ok, push_redirect(socket, to: to)}
38+
{:ok, push_navigate(socket, to: to)}
3939

4040
nav != nil and pc_pids == %{} ->
4141
# don't do anything, render will inform that we are waiting for peer connections
@@ -60,7 +60,7 @@ defmodule ExWebRTCDashboard do
6060
# redirect to any other pc
6161
nav = List.first(Map.keys(pc_pids))
6262
to = live_dashboard_path(socket, socket.assigns.page, nav: nav)
63-
{:ok, push_redirect(socket, to: to)}
63+
{:ok, push_navigate(socket, to: to)}
6464
end
6565
end
6666
end
@@ -100,7 +100,7 @@ defmodule ExWebRTCDashboard do
100100
socket.assigns.current_pc_str == nil and pc_pids != %{} ->
101101
nav = List.first(Map.keys(socket.assigns.pc_pids))
102102
to = live_dashboard_path(socket, socket.assigns.page, nav: nav)
103-
{:noreply, push_redirect(socket, to: to)}
103+
{:noreply, push_navigate(socket, to: to)}
104104

105105
socket.assigns.current_pc_str == nil ->
106106
{:noreply, socket}

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule ExWebRTCDashboard.MixProject do
22
use Mix.Project
33

4-
@version "0.2.0"
4+
@version "0.3.0"
55
@source_url "https://github.com/elixir-webrtc/ex_webrtc_dashboard"
66

77
def project do
@@ -42,7 +42,7 @@ defmodule ExWebRTCDashboard.MixProject do
4242
defp deps do
4343
[
4444
{:phoenix_live_dashboard, "~> 0.8.3"},
45-
{:ex_webrtc, github: "elixir-webrtc/ex_webrtc"},
45+
{:ex_webrtc, "~> 0.3.0"},
4646
{:ex_doc, "~> 0.31.0", only: :dev, runtime: false}
4747
]
4848
end

0 commit comments

Comments
 (0)