diff --git a/SB.js b/SB.js index c1085db0..adeb48d0 100644 --- a/SB.js +++ b/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 = {