mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Remove exclusive_accessCategoryAdded migration
This commit is contained in:
@@ -167,15 +167,8 @@ function migrateOldSyncFormats(config: SBConfig) {
|
|||||||
chrome.storage.sync.remove("segmentTimes", () => config.unsubmittedSegments = unsubmittedSegments);
|
chrome.storage.sync.remove("segmentTimes", () => config.unsubmittedSegments = unsubmittedSegments);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config["exclusive_accessCategoryAdded"] && !config.categorySelections.some((s) => s.name === "exclusive_access")) {
|
if (config["exclusive_accessCategoryAdded"] !== undefined) {
|
||||||
config["exclusive_accessCategoryAdded"] = true;
|
chrome.storage.sync.remove("exclusive_accessCategoryAdded");
|
||||||
|
|
||||||
config.categorySelections.push({
|
|
||||||
name: "exclusive_access" as Category,
|
|
||||||
option: CategorySkipOption.ShowOverlay
|
|
||||||
});
|
|
||||||
|
|
||||||
config.categorySelections = config.categorySelections;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config["fillerUpdate"] !== undefined) {
|
if (config["fillerUpdate"] !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user