Add tooltip about chapters feature

This commit is contained in:
Ajay
2022-09-18 03:15:20 -04:00
parent 4804c7f439
commit 6d757857cb
6 changed files with 56 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ export async function checkLicenseKey(licenseKey: string): Promise<boolean> {
try {
if (result.ok && JSON.parse(result.responseText).allowed) {
Config.config.payments.chaptersAllowed = true;
Config.config.showChapterInfoMessage = false;
Config.config.payments.lastCheck = Date.now();
Config.forceSyncUpdate("payments");
@@ -60,6 +61,7 @@ export async function fetchingChaptersAllowed(): Promise<boolean> {
if (userInfo.freeChaptersAccess) {
Config.config.payments.freeAccess = true;
Config.config.payments.chaptersAllowed = true;
Config.config.showChapterInfoMessage = false;
Config.forceSyncUpdate("payments");
return true;