FIX: Token not included in munged source

When munging the source for a video to add at subdomain, the wrong string was
being acted on, so the playback token was lost in translation.
This commit is contained in:
Erik Thuning 2025-01-22 13:22:50 +01:00
parent 0b22fab6a2
commit 6e0da80d9d

@ -1340,8 +1340,8 @@ input[type="range"]::-ms-track {
// simultaneous connections per server, prepend a
// random subdomain to the source if it is remote.
const prefix = randString(6);
tokenized = src.replace(/^(https?:\/\/)(.*)/,
`$1${prefix}.$2`);
tokenized = tokenized.replace(/^(https?:\/\/)(.*)/,
`$1${prefix}.$2`);
}
video.dataset[resolution] = tokenized;
});