From 451e4dffd000169e7113aa3275e4acaf7f1fbbbc Mon Sep 17 00:00:00 2001 From: Factiven Date: Tue, 24 Oct 2023 20:27:32 +0700 Subject: Update v4.2.2 --- lib/consumet/manga/getChapters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/consumet/manga/getChapters.js') diff --git a/lib/consumet/manga/getChapters.js b/lib/consumet/manga/getChapters.js index 7a19bbc..ee6eabe 100644 --- a/lib/consumet/manga/getChapters.js +++ b/lib/consumet/manga/getChapters.js @@ -1,7 +1,7 @@ let API_URL; -API_URL = process.env.API_URI; +API_URL = process.env.API_URI || null || null; // remove / from the end of the url if it exists -if (API_URL.endsWith("/")) { +if (API_URL && API_URL.endsWith("/")) { API_URL = API_URL.slice(0, -1); } -- cgit v1.2.3