preparing to ship

This commit is contained in:
2022-02-08 11:35:38 -06:00
parent f4f2d5cc9f
commit c507eed521

View File

@@ -10,14 +10,14 @@ export default function VideoPlayer({data, src}) {
const crossPostSrc = src; const crossPostSrc = src;
let url; // contains video source, routed accordingly by logic below let url; // contains video source, routed accordingly by logic below
if (crossPostSrc) { if (crossPostSrc) {
url = crossPostSrc; url = crossPostSrc; // ... for crossposts
} else if (data.url) { } else if (data.url) {
url = data.url; url = data.url; // ... for local posts, where the url
} else { } else { // can be accessed at data.url
url = null; url = null; // otherwise, is null
} }
useEffect(() => { // checks the endpoint where audio may be found useEffect(() => { // checks the endpoint where audio may be found