feat: add media save guide
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { assetUrl } from "../../../api";
|
||||
|
||||
export function pauseActiveVideos() {
|
||||
document.querySelectorAll("video").forEach((video) => {
|
||||
video.pause();
|
||||
});
|
||||
}
|
||||
|
||||
export function attachmentDownloadUrl(postId: string, attachmentId: string) {
|
||||
return assetUrl(
|
||||
`/api/posts/${encodeURIComponent(postId)}/attachments/${encodeURIComponent(
|
||||
|
||||
Reference in New Issue
Block a user