From 0b9def800ba0cbbc55f1a57b904dc22177917545 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Mon, 6 Jan 2020 21:17:28 +0000 Subject: [PATCH] Update SB.js --- SB.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SB.js b/SB.js index d74489db..a82dc07a 100644 --- a/SB.js +++ b/SB.js @@ -28,8 +28,8 @@ fetchConfig = () => new Promise((resolve, reject) => { function migrate() { // Convert sponsorTimes format for (key in SB.localconfig) { - if (key.startsWith("sponsorTimes")) { - SB.config.sponsorTimes.set(key.substr(11), SB.config[key]); + if (key.startsWith("sponsorTimes") && key !== "sponsorTimes")) { + SB.config.sponsorTimes.set(key.substr(12), SB.config[key]); delete SB.config[key]; } }