Open Livebook homepage on :reopen_app event (#928)

This commit is contained in:
Wojtek Mach 2022-01-23 20:46:30 +01:00 committed by GitHub
parent 88a92f8b2d
commit 97c64cedb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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