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

@ -59,8 +59,7 @@ function normaliseVideoInfo(video) {
function tToMediaFragment(t) {
let resolved = ""
console.log(t)
if (!t || t.length > 10) { // don't parse missing values, don't pass too long strings
if (!t || t.length > 10) { // don't parse missing values, don't parse too long strings
// skip processing
} else if (t.match(/^[0-9.,]+$/)) {
resolved = t