mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 13:03:45 +02: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
|
||||
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 = {
|
||||
|
|
Loading…
Reference in a new issue