Updated scripts to check for PRO status
This commit is contained in:
parent
26040e89b6
commit
e7744c79bf
@ -3,6 +3,11 @@ import { StatusMessage } from "../StatusMessage"
|
|||||||
|
|
||||||
// Select file
|
// Select file
|
||||||
export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
|
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 preview = document.getElementById(button.dataset.previewImageId) as HTMLImageElement
|
||||||
let endpoint = button.dataset.endpoint
|
let endpoint = button.dataset.endpoint
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ export class AnimeNotifier {
|
|||||||
this.app.loading = this.app.find("loading")
|
this.app.loading = this.app.find("loading")
|
||||||
|
|
||||||
// Theme
|
// Theme
|
||||||
if(this.user && this.user.dataset.theme !== "light") {
|
if(this.user && this.user.dataset.pro === "true" && this.user.dataset.theme !== "light") {
|
||||||
darkTheme()
|
darkTheme()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user