Skip to content

Commit

Permalink
fix link thumbnail view
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Jan 3, 2024
1 parent eee67bb commit 3e27c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/_editor+/blocks+/link/link-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Props = {
export function BlockLinkView({ element, children }: Props) {
const { hostname, pathname } = new URL(element.url as string);

const isSafeLink = ["mana.wiki"].includes(hostname);
const isSafeLink = hostname.endsWith("mana.wiki");

if (isSafeLink && element.icon) {
return (
Expand Down

0 comments on commit 3e27c59

Please sign in to comment.