Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 31, 2024
1 parent a99fcbf commit 300c424
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/pkg/web/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,8 @@ func (r *Renderer) Render(w io.Writer, statusCode int, props Props, ctx *Context
r.chunkedAssets[pageChunkName],
}

if tenant == nil || tenant.LogoBlobKey == "" {
private["favicon"] = AssetsURL(ctx, "/static/favicon")
} else {
private["favicon"] = AssetsURL(ctx, "/static/favicon/%s", tenant.LogoBlobKey)
}
// Always use the local favicon file
private["favicon"] = AssetsURL(ctx, "/static/favicon")

private["currentURL"] = ctx.Request.URL.String()
if canonicalURL := ctx.Value("Canonical-URL"); canonicalURL != nil {
Expand Down

0 comments on commit 300c424

Please sign in to comment.