diff --git a/pages/profile/profile.pixy b/pages/profile/profile.pixy index e8e32143..675dde40 100644 --- a/pages/profile/profile.pixy +++ b/pages/profile/profile.pixy @@ -30,15 +30,15 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, .mountable(data-mountable-type="character") CharacterSmall(character, user) - //- People - .profile-section - h3.profile-column-header.mountable(data-mountable-type="favorites") People - p.no-data.mountable(data-mountable-type="favorites") Nothing here yet. + //- //- People + //- .profile-section + //- h3.profile-column-header.mountable(data-mountable-type="favorites") People + //- p.no-data.mountable(data-mountable-type="favorites") Nothing here yet. - //- Quotes - .profile-section - h3.profile-column-header.mountable(data-mountable-type="favorites") Quotes - p.no-data.mountable(data-mountable-type="favorites") Nothing here yet. + //- //- Quotes + //- .profile-section + //- h3.profile-column-header.mountable(data-mountable-type="favorites") Quotes + //- p.no-data.mountable(data-mountable-type="favorites") Nothing here yet. //- Posts .profile-column.profile-activity.mountable(data-mountable-type="column") diff --git a/scripts/Actions/Diff.ts b/scripts/Actions/Diff.ts index b3b70ea4..c4f7d4b3 100644 --- a/scripts/Actions/Diff.ts +++ b/scripts/Actions/Diff.ts @@ -3,13 +3,24 @@ import { requestIdleCallback } from "../Utils" // Load export function load(arn: AnimeNotifier, element: HTMLElement) { - let url = element.dataset.url || (element as HTMLAnchorElement).href + let url = element.dataset.url || (element as HTMLAnchorElement).getAttribute("href") + + if(!url) { + arn.statusMessage.showError("Link doesn't have a target") + return + } + arn.app.load(url) } // Diff export async function diff(arn: AnimeNotifier, element: HTMLElement) { - let url = element.dataset.url || (element as HTMLAnchorElement).href + let url = element.dataset.url || (element as HTMLAnchorElement).getAttribute("href") + + if(!url) { + arn.statusMessage.showError("Link doesn't have a target") + return + } try { await arn.diff(url)