Updated scripts to check for PRO status
This commit is contained in:
parent
26040e89b6
commit
e7744c79bf
scripts
@ -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
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user