mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Allow /manga/<id>
URL for MangaDex
This commit is contained in:
parent
a86f0d0f34
commit
3bb0917374
@ -95,7 +95,7 @@ const search = () => {
|
||||
|
||||
try {
|
||||
const path = new URL(input).pathname;
|
||||
const match = /\/title\/([0-9]+)/.exec(path);
|
||||
const match = /\/(?:title|manga)\/([0-9]+)/.exec(path);
|
||||
int_id = parseInt(match[1]);
|
||||
} catch (e) {
|
||||
int_id = parseInt(input);
|
||||
|
Loading…
x
Reference in New Issue
Block a user