mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-05 04:15:35 -04:00
Fix the problem that URLs are not being parsed on the download page
This commit is contained in:
parent
943076ccf7
commit
4def23a5cf
@ -99,9 +99,9 @@ const search = () => {
|
|||||||
const match = /\/title\/([0-9]+)/.exec(path);
|
const match = /\/title\/([0-9]+)/.exec(path);
|
||||||
int_id = parseInt(match[1]);
|
int_id = parseInt(match[1]);
|
||||||
}
|
}
|
||||||
catch(e) {}
|
catch(e) {
|
||||||
|
int_id = parseInt(input);
|
||||||
int_id = parseInt(input);
|
}
|
||||||
|
|
||||||
if (int_id <= 0 || isNaN(int_id)) {
|
if (int_id <= 0 || isNaN(int_id)) {
|
||||||
alert('danger', 'Please make sure you are using a valid manga ID or manga URL from Mangadex.');
|
alert('danger', 'Please make sure you are using a valid manga ID or manga URL from Mangadex.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user