Skip to content
Snippets Groups Projects
Commit 130b5625 authored by Francesco Gramegna's avatar Francesco Gramegna
Browse files

Removed parasite println

parent 562562f4
No related branches found
No related tags found
1 merge request!36Fixes cs214/ul2024/webapp-lib#1: ShareUrl: Dynamically created by client
...@@ -276,8 +276,7 @@ case class AppPage(appId: AppId, uiId: UIId, instanceId: InstanceId, userId: Use ...@@ -276,8 +276,7 @@ case class AppPage(appId: AppId, uiId: UIId, instanceId: InstanceId, userId: Use
.replace("{{userId}}", URLEncoder.encode(userId, "UTF-8")) .replace("{{userId}}", URLEncoder.encode(userId, "UTF-8"))
val shareUrlHost = val shareUrlHost =
if hostName == "localhost" then appInfo.hostAddress else hostName if hostName == "localhost" then appInfo.hostAddress else hostName
println("my hostname is " + hostName)
val shareUrl = f"$hypertextProtocol://${shareUrlHost}${if port.nonEmpty then f":$port" else ""}${appInfo.shareSubUrl}" val shareUrl = f"$hypertextProtocol://${shareUrlHost}${if port.nonEmpty then f":$port" else ""}${appInfo.shareSubUrl}"
IpBanner(shareUrl).renderInto(target.querySelector("#banner")) IpBanner(shareUrl).renderInto(target.querySelector("#banner"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment