mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 04:54:29 +08:00
Fix iframe loading when only the iframe server starts on random port (#2947)
This commit is contained in:
parent
c42c5d39fb
commit
e4a63ef29a
1 changed files with 1 additions and 2 deletions
|
@ -27,10 +27,9 @@ defmodule LivebookWeb.IframeEndpoint do
|
|||
"""
|
||||
@spec port() :: pos_integer()
|
||||
def port() do
|
||||
livebook_port = Livebook.Config.port()
|
||||
iframe_port = Livebook.Config.iframe_port()
|
||||
|
||||
case livebook_port do
|
||||
case iframe_port do
|
||||
0 ->
|
||||
try do
|
||||
ThousandIsland.listener_info(__MODULE__)
|
||||
|
|
Loading…
Add table
Reference in a new issue