Allow /manga/<id> URL for MangaDex

This commit is contained in:
Alex Ling 2020-10-15 11:38:22 +00:00
parent a86f0d0f34
commit 3bb0917374

View File

@ -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);