Commit 3d13c2e6 authored by dhomo's avatar dhomo

fix not latin symbols in search manga

parent 0d9130e5
......@@ -10,8 +10,14 @@ if (typeof registerMangaObject === "function") {
getMangaList: async function (search) {
let json = await amr.loadJson(
"http://readmanga.me/search/suggestion?query=" + search,
{ nocache: true, preventimages: true }
"http://readmanga.me/search/suggestion",
{
nocache: true,
preventimages: true,
type: 'GET',
dataType: "text",
data: {query: search}
}
)
let res = [];
for (let sug of json.suggestions) {
......
......@@ -11,7 +11,13 @@ if (typeof registerMangaObject === "function") {
getMangaList: async function (search) {
let json = await amr.loadJson(
"http://mintmanga.com/search/suggestion?query=" + search,
{ nocache: true, preventimages: true }
{
nocache: true,
preventimages: true,
type: 'GET',
dataType: "text",
data: { query: search }
}
)
let res = [];
for (let sug of json.suggestions) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment