aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/popup.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-03-18 21:27:26 -0400
committerAjay <[email protected]>2023-03-18 21:27:26 -0400
commit2f68a66f1369c8b876ad4e07ce7f4acf50f516c5 (patch)
tree44c46e7ea3ad71548a0572b70abb700405521747 /src/popup.ts
parent9831c3393f8ecb90d3b35f32b4b1a138c5e69259 (diff)
downloadSponsorBlock-2f68a66f1369c8b876ad4e07ce7f4acf50f516c5.tar.gz
SponsorBlock-2f68a66f1369c8b876ad4e07ce7f4acf50f516c5.zip
Remove chapters payment checks
Diffstat (limited to 'src/popup.ts')
-rw-r--r--src/popup.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/popup.ts b/src/popup.ts
index 2f988119..d361ef5e 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -25,7 +25,6 @@ import { shortCategoryName } from "./utils/categoryUtils";
import { localizeHtmlPage } from "./utils/pageUtils";
import { exportTimes } from "./utils/exporter";
import GenericNotice from "./render/GenericNotice";
-import { noRefreshFetchingChaptersAllowed } from "./utils/licenseKey";
import { getFormattedTime } from "@ajayyy/maze-utils/lib/formating";
import { StorageChangesObject } from "@ajayyy/maze-utils/lib/config";
import { getHash } from "@ajayyy/maze-utils/lib/hash";
@@ -282,7 +281,6 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
}
const values = ["userName", "viewCount", "minutesSaved", "vip", "permissions"];
- if (!Config.config.payments.freeAccess && !noRefreshFetchingChaptersAllowed()) values.push("freeChaptersAccess");
utils.asyncRequestToServer("GET", "/api/userInfo", {
publicUserID: await getHash(Config.config.userID),
@@ -317,13 +315,6 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
Config.config.isVip = userInfo.vip;
Config.config.permissions = userInfo.permissions;
-
- if (userInfo.freeChaptersAccess) {
- Config.config.payments.chaptersAllowed = userInfo.freeChaptersAccess;
- Config.config.payments.freeAccess = userInfo.freeChaptersAccess;
- Config.config.payments.lastCheck = Date.now();
- Config.forceSyncUpdate("payments");
- }
}
});