Update SB.js

This commit is contained in:
Official Noob 2020-01-06 21:14:31 +00:00 committed by GitHub
parent c99f7925eb
commit d8ae73e96a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
SB.js
View file

@ -29,7 +29,7 @@ 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(12), SB.config[key]);
SB.config.sponsorTimes.set(key.substr(11), SB.config[key]);
delete SB.config[key];
}
}