mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 20:05:29 -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);
|
||||
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.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user