mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +03:00
Update SB.js
This commit is contained in:
4
SB.js
4
SB.js
@@ -28,8 +28,8 @@ fetchConfig = () => new Promise((resolve, reject) => {
|
|||||||
|
|
||||||
function migrate() { // Convert sponsorTimes format
|
function migrate() { // Convert sponsorTimes format
|
||||||
for (key in SB.localconfig) {
|
for (key in SB.localconfig) {
|
||||||
if (key.startsWith("sponsorTimes")) {
|
if (key.startsWith("sponsorTimes") && key !== "sponsorTimes")) {
|
||||||
SB.config.sponsorTimes.set(key.substr(11), SB.config[key]);
|
SB.config.sponsorTimes.set(key.substr(12), SB.config[key]);
|
||||||
delete SB.config[key];
|
delete SB.config[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user