mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-20 07:24:23 +01:00
feat: support gyazo thumbnail
This commit is contained in:
@@ -12,6 +12,9 @@ const fixUrl = (url: URL): string => {
|
|||||||
const imageId = match[1];
|
const imageId = match[1];
|
||||||
result.pathname = `${imageId}l.webp`;
|
result.pathname = `${imageId}l.webp`;
|
||||||
}
|
}
|
||||||
|
} else if (url.host === 'i.gyazo.com') {
|
||||||
|
result.host = 'thumb.gyazo.com';
|
||||||
|
result.pathname = `/thumb/640_w${url.pathname}`;
|
||||||
}
|
}
|
||||||
return result.toString();
|
return result.toString();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user