Fixed wrong variabled being used.

This commit is contained in:
Ajay Ramachandran
2020-01-11 14:50:11 -05:00
parent 7c809419f8
commit 1163b6f0ce

4
SB.js
View File

@@ -115,7 +115,7 @@ function configProxy() {
},
deleteProperty(obj, prop) {
chrome.storage.sync.remove(key);
chrome.storage.sync.remove(prop);
}
};
@@ -133,7 +133,7 @@ function fetchConfig() {
}
function migrateOldFormats() { // Convert sponsorTimes format
for (key in SB.localConfig) {
for (const key in SB.localConfig) {
if (key.startsWith("sponsorTimes") && key !== "sponsorTimes" && key !== "sponsorTimesContributed") {
SB.config.sponsorTimes.set(key.substr(12), SB.config[key]);
delete SB.config[key];