Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 66f8eb9

Browse files
authored
Formatting and simplification
1 parent 8319992 commit 66f8eb9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/nhentai/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ const NHENTAI_IMAGE_URL = "https://i.nhentai.net/galleries/";
1010

1111

1212
function listChapters(url) {
13-
14-
if(url.includes(NHENTAI_BASE_URL,0) ==false)
15-
{
16-
url=NHENTAI_BASE_URL+url+"/";
13+
if (!url.includes(NHENTAI_BASE_URL, 0)) {
14+
url = NHENTAI_BASE_URL + url;
1715
}
1816

1917
var html = mango.get(url).body;

0 commit comments

Comments
 (0)