1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Tip: Don't code at 1 AM

- Remove console.log
- Default value for render video locals
This commit is contained in:
Cadence Ember 2021-01-14 01:49:26 +13:00
parent bb4816c4b3
commit c83bdcb924
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
2 changed files with 2 additions and 3 deletions

View file

@ -36,7 +36,7 @@ function formatOrder(format) {
return -total
}
async function renderVideo(videoPromise, {user, id, instanceOrigin}, locals) {
async function renderVideo(videoPromise, {user, id, instanceOrigin}, locals = {}) {
try {
// resolve video
const video = await videoPromise