Skip to content

Commit 3f84504

Browse files
committed
Fix examples/demo_router.exs
1 parent 74c845a commit 3f84504

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/demo_router.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@ defmodule DemoRouter do
3838
pipeline :browser do
3939
plug :accepts, ["html"]
4040
plug :fetch_session
41-
plug :put_root_layout, html: {PhoenixPlayground.Layouts, :root}
41+
plug :put_root_layout, html: {PhoenixPlayground.Layout, :root}
4242
plug :put_secure_browser_headers
4343
end
4444

4545
scope "/" do
4646
pipe_through :browser
4747

48-
live_session :default, layout: {PhoenixPlayground.Layouts, :live} do
49-
live "/", CounterLive
50-
end
48+
live "/", CounterLive
5149
end
5250
end
5351

0 commit comments

Comments
 (0)