mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update media-utils.ts
This commit is contained in:
@@ -88,7 +88,7 @@ export const getLinkMediaInfo = memoize(
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mime = extName(new URL(link).pathname.toLowerCase().replace('/', ''))[0]?.mime;
|
mime = extName(url.pathname.toLowerCase().replace('/', ''))[0]?.mime;
|
||||||
if (mime) {
|
if (mime) {
|
||||||
if (mime.startsWith('image')) {
|
if (mime.startsWith('image')) {
|
||||||
type = mime === 'image/gif' ? 'gif' : 'image';
|
type = mime === 'image/gif' ? 'gif' : 'image';
|
||||||
|
|||||||
Reference in New Issue
Block a user