svg fix
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import {getContext} from "svelte";
|
||||
|
||||
export function imgurl(record) {
|
||||
|
||||
if(record._file.mime === "image/svg+xml"){
|
||||
return fileurl(record);
|
||||
}
|
||||
const channel = getContext("channel")
|
||||
return channel.filesUrl + `/thumbs/${record._file.path}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user