mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Moved requests to the background script.
This should avoid ad blockers messing with requests. Helps with https://github.com/ajayyy/SponsorBlock/issues/354
This commit is contained in:
@@ -268,7 +268,7 @@ async function migrateOldFormats() {
|
||||
let response = await utils.asyncRequestToCustomServer("GET", "https://sponsor.ajay.app/invidious/api/v1/channels/" + item.split("/")[2] + "?fields=authorId");
|
||||
|
||||
if (response.ok) {
|
||||
newChannelList.push((await response.json()).authorId);
|
||||
newChannelList.push((JSON.parse(response.responseText)).authorId);
|
||||
} else {
|
||||
// Add it at the beginning so it gets converted later
|
||||
newChannelList.unshift(item);
|
||||
|
||||
Reference in New Issue
Block a user