Skip to content

Commit

Permalink
Don't attempt to embed links if there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
le717 committed Jun 8, 2024
1 parent b89ccc4 commit 01cfb9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/webring-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const markup = ["<dl>"];
const webring = {{ all_links }};

// If there's no embed area, we can't do anything
if (qWebringEmbedArea === null) {
// If there's no embed area or no weblinks, we can't do anything
if (qWebringEmbedArea === null || webring.length === 0) {
return;
}

Expand Down

0 comments on commit 01cfb9a

Please sign in to comment.