Remove exclusive_accessCategoryAdded migration

This commit is contained in:
Ajay
2023-03-18 21:31:27 -04:00
parent f00b3abbe4
commit 4cf827b48a

View File

@@ -167,15 +167,8 @@ function migrateOldSyncFormats(config: SBConfig) {
chrome.storage.sync.remove("segmentTimes", () => config.unsubmittedSegments = unsubmittedSegments);
}
if (!config["exclusive_accessCategoryAdded"] && !config.categorySelections.some((s) => s.name === "exclusive_access")) {
config["exclusive_accessCategoryAdded"] = true;
config.categorySelections.push({
name: "exclusive_access" as Category,
option: CategorySkipOption.ShowOverlay
});
config.categorySelections = config.categorySelections;
if (config["exclusive_accessCategoryAdded"] !== undefined) {
chrome.storage.sync.remove("exclusive_accessCategoryAdded");
}
if (config["fillerUpdate"] !== undefined) {