Fix the problem that URLs are not being parsed on the download page

This commit is contained in:
Alex Ling 2020-03-11 18:15:43 +00:00
parent 943076ccf7
commit 4def23a5cf

View File

@ -99,9 +99,9 @@ const search = () => {
const match = /\/title\/([0-9]+)/.exec(path);
int_id = parseInt(match[1]);
}
catch(e) {}
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.');