mirror of
https://github.com/hkalexling/Mango.git
synced 2026-05-01 00:00:55 -04:00
Allow /manga/<id> URL for MangaDex
This commit is contained in:
@@ -95,7 +95,7 @@ const search = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const path = new URL(input).pathname;
|
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]);
|
int_id = parseInt(match[1]);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
int_id = parseInt(input);
|
int_id = parseInt(input);
|
||||||
|
|||||||
Reference in New Issue
Block a user