mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 11:49:25 +00:00
Add support for 3d models in assets and attachments
This commit is contained in:
@@ -16,6 +16,13 @@ export function isVideoAsset(asset) {
|
||||
return asset?.mediaType?.startsWith("video/");
|
||||
}
|
||||
|
||||
export function isModelAsset(asset) {
|
||||
if (asset?.assetType) {
|
||||
return asset.assetType === "MODEL";
|
||||
}
|
||||
return asset?.mediaType?.startsWith("model/");
|
||||
}
|
||||
|
||||
export function isVideoElement(element) {
|
||||
return element?.tagName === "VIDEO";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user