mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-27 17:27:51 +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}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:reopen_app, _}, state) do
|
||||
Livebook.Utils.browser_open(LivebookWeb.Endpoint.access_url())
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
# ignore other events
|
||||
@impl true
|
||||
def handle_info(_event, state) do
|
||||
|
|
Loading…
Reference in a new issue