Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
realabertian committed Jun 1, 2024
1 parent e5596ef commit 4894c56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/web/mjs/connectors/KissAway.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default class KissAway extends FlatManga {
this.tags = [ 'manga', 'raw', 'japanese' ];
this.url = 'https://klz9.com';
this.requestOptions.headers.set('x-referer', this.url);
this.TO_PATH_CHARACTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
this.TO_PATH_CHARACTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
}

generateRandomStr(length) {
let list = [... Array(length).keys()]
let list = [... Array(length).keys()];
return list.map(i => {
const max = this.TO_PATH_CHARACTERS.length;
const randomIndex = Math.floor(Math.random() * max);
Expand All @@ -22,7 +22,7 @@ export default class KissAway extends FlatManga {
}

async _getChapters(manga) {
const randomStr = this.generateRandomStr(25)
const randomStr = this.generateRandomStr(25);
const script = `
new Promise(async resolve => {
const uri = new URL('${randomStr}.lstc', window.location.origin);
Expand Down

0 comments on commit 4894c56

Please sign in to comment.