mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34:57 +08:00
Open Livebook homepage on :reopen_app
event (#928)
This commit is contained in:
parent
88a92f8b2d
commit
97c64cedb8
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ if Mix.target() == :app do
|
||||||
{:noreply, state}
|
{:noreply, state}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@impl true
|
||||||
|
def handle_info({:reopen_app, _}, state) do
|
||||||
|
Livebook.Utils.browser_open(LivebookWeb.Endpoint.access_url())
|
||||||
|
{:noreply, state}
|
||||||
|
end
|
||||||
|
|
||||||
# ignore other events
|
# ignore other events
|
||||||
@impl true
|
@impl true
|
||||||
def handle_info(_event, state) do
|
def handle_info(_event, state) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue