Skip to content

Commit

Permalink
Merge branch 'master' into refac/users
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn authored Jan 27, 2025
2 parents 91723df + ad93c33 commit 3785d16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gno.land/pkg/gnoweb/components/layout_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ type HeadData struct {
ChromaPath string
AssetsPath string
Analytics bool
Remote string
ChainId string
}

type IndexData struct {
Expand Down
4 changes: 4 additions & 0 deletions gno.land/pkg/gnoweb/components/layouts/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@

<!-- web assets -->
<link rel="stylesheet" href="{{ .AssetsPath }}styles.css" />

<!-- wallet integrations -->
<meta name="gnoconnect:rpc" content="{{ .Remote }}" />
<meta name="gnoconnect:chainid" content="{{ .ChainId }}" />
</head>
{{ end }}
2 changes: 2 additions & 0 deletions gno.land/pkg/gnoweb/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ func (h *WebHandler) Get(w http.ResponseWriter, r *http.Request) {
HeadData: components.HeadData{
AssetsPath: h.Static.AssetsPath,
ChromaPath: h.Static.ChromaPath,
ChainId: h.Static.ChainId,
Remote: h.Static.RemoteHelp,
},
FooterData: components.FooterData{
Analytics: h.Static.Analytics,
Expand Down

0 comments on commit 3785d16

Please sign in to comment.