Update SB.js

This commit is contained in:
Official Noob
2020-01-06 21:17:28 +00:00
committed by GitHub
parent d8ae73e96a
commit 0b9def800b

4
SB.js
View File

@@ -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];
}
}