mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Only update invidious instances if there are more, and don't remove old ones
This commit is contained in:
parent
11f6fc9a31
commit
21f1e52571
1 changed files with 2 additions and 2 deletions
|
@ -232,8 +232,8 @@ function migrateOldSyncFormats(config: SBConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// populate invidiousInstances with new instances if 3p support is **DISABLED**
|
// populate invidiousInstances with new instances if 3p support is **DISABLED**
|
||||||
if (!config["supportInvidious"] && config["invidiousInstances"].length !== invidiousList.length) {
|
if (!config["supportInvidious"] && config["invidiousInstances"].length < invidiousList.length) {
|
||||||
config["invidiousInstances"] = invidiousList;
|
config["invidiousInstances"] = [...new Set([...invidiousList, ...config["invidiousInstances"]])];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config["lastIsVipUpdate"]) {
|
if (config["lastIsVipUpdate"]) {
|
||||||
|
|
Loading…
Reference in a new issue