Updated scripts to check for PRO status

This commit is contained in:
Eduard Urbach 2018-03-07 15:57:03 +01:00
parent 26040e89b6
commit e7744c79bf
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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()
}