mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Fix format conflict
This commit is contained in:
4
SB.js
4
SB.js
@@ -28,7 +28,7 @@ fetchConfig = () => new Promise((resolve, reject) => {
|
||||
|
||||
function migrate() { // Convert sponsorTimes format
|
||||
for (key in SB.localconfig) {
|
||||
if (key.startsWith("sponsorTimes") && key !== "sponsorTimes") {
|
||||
if (key.startsWith("sponsorTimes") && key !== "sponsorTimes" && key !== "sponsorTimesContributed") {
|
||||
SB.config.sponsorTimes.set(key.substr(12), SB.config[key]);
|
||||
delete SB.config[key];
|
||||
}
|
||||
@@ -38,8 +38,8 @@ function migrate() { // Convert sponsorTimes format
|
||||
async function config() {
|
||||
await fetchConfig();
|
||||
addDefaults();
|
||||
migrate();
|
||||
SB.config = configProxy();
|
||||
migrate();
|
||||
}
|
||||
|
||||
SB.defaults = {
|
||||
|
||||
Reference in New Issue
Block a user