diff options
author | Ajay <[email protected]> | 2023-03-18 21:27:26 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-03-18 21:27:26 -0400 |
commit | 2f68a66f1369c8b876ad4e07ce7f4acf50f516c5 (patch) | |
tree | 44c46e7ea3ad71548a0572b70abb700405521747 /src/popup.ts | |
parent | 9831c3393f8ecb90d3b35f32b4b1a138c5e69259 (diff) | |
download | SponsorBlock-2f68a66f1369c8b876ad4e07ce7f4acf50f516c5.tar.gz SponsorBlock-2f68a66f1369c8b876ad4e07ce7f4acf50f516c5.zip |
Remove chapters payment checks
Diffstat (limited to 'src/popup.ts')
-rw-r--r-- | src/popup.ts | 9 |
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"); - } } }); |