mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix format conflict
This commit is contained in:
parent
c20b67d11f
commit
a7dc207c5f
1 changed files with 2 additions and 2 deletions
4
SB.js
4
SB.js
|
@ -28,7 +28,7 @@ fetchConfig = () => new Promise((resolve, reject) => {
|
||||||
|
|
||||||
function migrate() { // Convert sponsorTimes format
|
function migrate() { // Convert sponsorTimes format
|
||||||
for (key in SB.localconfig) {
|
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]);
|
SB.config.sponsorTimes.set(key.substr(12), SB.config[key]);
|
||||||
delete SB.config[key];
|
delete SB.config[key];
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,8 @@ function migrate() { // Convert sponsorTimes format
|
||||||
async function config() {
|
async function config() {
|
||||||
await fetchConfig();
|
await fetchConfig();
|
||||||
addDefaults();
|
addDefaults();
|
||||||
migrate();
|
|
||||||
SB.config = configProxy();
|
SB.config = configProxy();
|
||||||
|
migrate();
|
||||||
}
|
}
|
||||||
|
|
||||||
SB.defaults = {
|
SB.defaults = {
|
||||||
|
|
Loading…
Reference in a new issue