Skip to content

Commit

Permalink
Simplify iframe URL construction in honey-tracker
Browse files Browse the repository at this point in the history
Removed unnecessary query parameters from the iframe URL in honey-tracker. This change ensures the URL is clean and may improve compatibility or security.
  • Loading branch information
billettc committed Sep 13, 2024
1 parent ae86a07 commit ae45ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/honey-tracker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}

iframeUrl := METABASE_SITE_URL + "/embed/dashboard/" + tokenString
iframeUrl := METABASE_SITE_URL + "/embed/dashboard/" + tokenString + "#bordered=true&titled=true"

tmplData := PageData{
IFrameUrl: iframeUrl,
Expand All @@ -260,8 +260,8 @@ const tmpl = `
<iframe
src="{{.IFrameUrl}}"
frameborder="0"
width="100%"
height="100%"
width="90%"
height="90%"
allowtransparency
></iframe></body>
</html>
Expand Down

0 comments on commit ae45ca1

Please sign in to comment.