mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Merge branch 'master' into headless-api
This commit is contained in:
commit
7e7583bcfc
1 changed files with 3 additions and 1 deletions
|
|
@ -264,7 +264,9 @@ function App:startSession(host: string?, port: string?)
|
|||
twoWaySync = Settings:get("twoWaySync"),
|
||||
}
|
||||
|
||||
local baseUrl = string.format("http://%s:%s", host :: string, port :: string)
|
||||
local baseUrl = if string.find(host, "^https?://")
|
||||
then string.format("%s:%s", host, port)
|
||||
else string.format("http://%s:%s", host, port)
|
||||
local apiContext = ApiContext.new(baseUrl)
|
||||
|
||||
local serveSession = ServeSession.new({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue