This commit is contained in:
lexx committed 2023-10-20 21:17:43 +03:00
1 parent 69aea866dc
commit 46278f0a8a
5 files changed
+44 -38

No files matched your search

+4
View File
@@ -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}`;
}