fix(source): Foxaholic (#563)

This commit is contained in:
Patrick Loser
2023-02-23 03:08:38 +01:00
committed by GitHub
parent b40e9331d7
commit 2e4ff916aa
-13
View File
@@ -96,19 +96,6 @@ const parseNovelAndChapters = async novelUrl => {
let novelChapters = [];
// const novelId = $('#manga-chapters-holder').attr('data-id');
// let formData = new FormData();
// formData.append('action', 'manga_get_chapters');
// formData.append('manga', novelId);
const data = await fetch(`${url}ajax/chapters/`, {
method: 'POST',
});
const text = await data.text();
loadedCheerio = cheerio.load(text);
loadedCheerio('.wp-manga-chapter').each(function () {
const chapterName = loadedCheerio(this)
.find('a')