style: format static/player/source.ts
This commit is contained in:
@@ -2,7 +2,9 @@ import { state } from "./state";
|
||||
|
||||
export const streamUrlForMode = (mode: string, quality?: string): string => {
|
||||
const src = state.playback.modeSources[mode];
|
||||
if (!src?.token) return "";
|
||||
if (!src?.token) {
|
||||
return "";
|
||||
}
|
||||
|
||||
let url = `${state.playback.streamURL}?mode=${encodeURIComponent(mode)}&token=${encodeURIComponent(src.token)}`;
|
||||
if (src.type === "m3u8") {
|
||||
|
||||
Reference in New Issue
Block a user