Skip to content

Commit

Permalink
fix: allow undefined logo (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
manbearwiz committed Feb 9, 2024
1 parent 5042951 commit e62f2e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/website/index.ejs
Expand Up @@ -129,7 +129,7 @@
</a>
<%}%>
<div class="header">
<%if(logo) {%>
<%if(typeof logo==='string' ) {%>
<div class="logo">
<a href="./"><%-logo%></a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions test/example/index.js
Expand Up @@ -33,8 +33,8 @@ svgtofont({
index: "unicode", // Enum{"font-class", "unicode", "symbol"}
title: "svgtofont",
favicon: path.resolve(rootPath, "favicon.png"),
// Must be a .svg format image.
logo: path.resolve(rootPath, "svg", "git.svg"),
// Must be a .svg format image. Missing here to ensure the example works without it.
// logo: path.resolve(rootPath, "svg", "git.svg"),
version: pkg.version,
meta: {
description: "Converts SVG fonts to TTF/EOT/WOFF/WOFF2/SVG format.",
Expand Down

0 comments on commit e62f2e4

Please sign in to comment.