Fixed migrate

This commit is contained in:
Ajay Ramachandran
2020-01-06 16:13:50 -05:00
committed by GitHub
parent 3627661e1f
commit c99f7925eb

2
SB.js
View File

@@ -28,7 +28,7 @@ fetchConfig = () => new Promise((resolve, reject) => {
function migrate() { // Convert sponsorTimes format
for (key in SB.localconfig) {
if (key.startsWith("sponsortime")) {
if (key.startsWith("sponsorTimes")) {
SB.config.sponsorTimes.set(key.substr(12), SB.config[key]);
delete SB.config[key];
}