Skip to content

Commit

Permalink
๐Ÿž fix: close #10
Browse files Browse the repository at this point in the history
  • Loading branch information
็™ฝไบ‘่‹็‹— committed Dec 9, 2024
1 parent 94fbd7a commit 2bbf0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitepress-theme-async/composables/links.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
async load() {
if (isString(theme.links) && /^(http[s]{0,1}):\/\//g.test(theme.links)) {
return (await fetch(theme.links)).json();
} else if (Array.isArray(theme.links)) {
} else {
return Array.isArray(theme.links) ? theme.links : [];
}
},
Expand Down

0 comments on commit 2bbf0f7

Please sign in to comment.