fix: share link
This commit is contained in:
parent
4b60cdbcc2
commit
ffb27bfd93
|
|
@ -15,11 +15,11 @@ func GuaranteeEnv(key string) (variable string) {
|
|||
}
|
||||
|
||||
var JwtSecret = GuaranteeEnv("LISHWIST_JWT_SECRET")
|
||||
var HostDomain = GuaranteeEnv("LISHWIST_HOST_DOMAIN")
|
||||
var HostRootUrl = GuaranteeEnv("LISHWIST_HOST_ROOT_URL")
|
||||
var HostPort = os.Getenv("LISHWIST_HOST_PORT")
|
||||
var ServePort = GuaranteeEnv("LISHWIST_SERVE_PORT")
|
||||
var HostUrl = func() *url.URL {
|
||||
rawUrl := "http://" + HostDomain
|
||||
rawUrl := HostRootUrl
|
||||
if HostPort != "" {
|
||||
rawUrl += ":" + HostPort
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="flex-grow-1"></div>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><button class="btn btn-success"
|
||||
onclick="navigator.clipboard.writeText('{{.HostUrl}}/{{.Reference}}'); alert('The share link to your wishlist has been copied to your clipboard. Share it with someone!');">Copy
|
||||
onclick="navigator.clipboard.writeText('{{.HostUrl}}/{{.Reference}}'); alert('The share link to your wishlist has been copied to your clipboard. Anyone with the link will be able to claim gifts for you. Share it with someone!');">Copy
|
||||
share link</button></li>
|
||||
<li class="nav-item">
|
||||
<div class="dropdown">
|
||||
|
|
@ -92,4 +92,4 @@
|
|||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue