Skip to content

Commit

Permalink
Merge pull request #21 from prince-ao/master
Browse files Browse the repository at this point in the history
FIX: fixed getComcis page
  • Loading branch information
prince-ao authored Jul 17, 2022
2 parents 0e5f282 + 39c732c commit fac7660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/comics/getComics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class getComics extends ComicParser {
'https://scontent-lga3-1.xx.fbcdn.net/v/t31.18172-8/10923821_1548503832063793_2041220008970231476_o.png?_nc_cat=102&ccb=1-7&_nc_sid=09cbfe&_nc_ohc=aQyuLlPZtQAAX8dJviD&_nc_ht=scontent-lga3-1.xx&oh=00_AT_yPS4uuNDGirSqXnTwl2VGS9leFv4-Ujt7l6l5_FZeLw&oe=62D00D68';
override readonly classPath = 'COMICS.GetComics';

override search = async (query: string, page: number = 1) => {
override search = async (query: string, page: number | undefined = 1) => {
query = encodeURIComponent(query);
const { data } = await get(`${this.baseUrl}/page/${page ? page : 1}/?s=${query}`);
const $ = load(data);
Expand Down

0 comments on commit fac7660

Please sign in to comment.