mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Don't reset custom invidious instances on safari
This commit is contained in:
parent
4af318403a
commit
11f6fc9a31
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import * as CompileConfig from "../config.json";
|
import * as CompileConfig from "../config.json";
|
||||||
import * as invidiousList from "../ci/invidiouslist.json";
|
import * as invidiousList from "../ci/invidiouslist.json";
|
||||||
import { Category, CategorySelection, CategorySkipOption, NoticeVisbilityMode, PreviewBarOption, SponsorTime, Keybind, VideoID, SponsorHideType } from "./types";
|
import { Category, CategorySelection, CategorySkipOption, NoticeVisbilityMode, PreviewBarOption, SponsorTime, Keybind, VideoID, SponsorHideType } from "./types";
|
||||||
import { isSafari, keybindEquals } from "./utils/configUtils";
|
import { keybindEquals } from "./utils/configUtils";
|
||||||
import { ProtoConfig } from "@ajayyy/maze-utils/lib/config";
|
import { ProtoConfig } from "@ajayyy/maze-utils/lib/config";
|
||||||
import { HashedValue } from "@ajayyy/maze-utils/lib/hash";
|
import { HashedValue } from "@ajayyy/maze-utils/lib/hash";
|
||||||
|
|
||||||
|
@ -232,8 +232,7 @@ function migrateOldSyncFormats(config: SBConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// populate invidiousInstances with new instances if 3p support is **DISABLED**
|
// populate invidiousInstances with new instances if 3p support is **DISABLED**
|
||||||
// for safari, update it immediately
|
if (!config["supportInvidious"] && config["invidiousInstances"].length !== invidiousList.length) {
|
||||||
if ((isSafari() || !config["supportInvidious"]) && config["invidiousInstances"].length !== invidiousList.length) {
|
|
||||||
config["invidiousInstances"] = invidiousList;
|
config["invidiousInstances"] = invidiousList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue