diff --git a/scripts/Actions/Upload.ts b/scripts/Actions/Upload.ts index 65562d86..1f4874c8 100644 --- a/scripts/Actions/Upload.ts +++ b/scripts/Actions/Upload.ts @@ -3,6 +3,11 @@ import { StatusMessage } from "../StatusMessage" // Select file export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) { + if(arn.user.dataset.pro !== "true") { + alert("Please buy a PRO account to use this feature.") + return + } + let preview = document.getElementById(button.dataset.previewImageId) as HTMLImageElement let endpoint = button.dataset.endpoint diff --git a/scripts/AnimeNotifier.ts b/scripts/AnimeNotifier.ts index 9134e437..63dd6e1f 100644 --- a/scripts/AnimeNotifier.ts +++ b/scripts/AnimeNotifier.ts @@ -120,7 +120,7 @@ export class AnimeNotifier { this.app.loading = this.app.find("loading") // Theme - if(this.user && this.user.dataset.theme !== "light") { + if(this.user && this.user.dataset.pro === "true" && this.user.dataset.theme !== "light") { darkTheme() }