From 4def23a5cf5ad2d506608f083af603205fe1bc5e Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Wed, 11 Mar 2020 18:15:43 +0000 Subject: [PATCH] Fix the problem that URLs are not being parsed on the download page --- public/js/download.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/download.js b/public/js/download.js index 3529b13..2d7ed07 100644 --- a/public/js/download.js +++ b/public/js/download.js @@ -99,9 +99,9 @@ const search = () => { const match = /\/title\/([0-9]+)/.exec(path); int_id = parseInt(match[1]); } - catch(e) {} - - int_id = parseInt(input); + catch(e) { + int_id = parseInt(input); + } if (int_id <= 0 || isNaN(int_id)) { alert('danger', 'Please make sure you are using a valid manga ID or manga URL from Mangadex.');