From 9027f8af73d67bc9831f89adf43dc8582a3c8e2d Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Fri, 16 Jun 2023 18:04:27 +0000 Subject: [PATCH] style: remove whitespaces at the end of the lines Part-of: --- front/public/embed.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/public/embed.html b/front/public/embed.html index 2d13aee3b..358353c44 100644 --- a/front/public/embed.html +++ b/front/public/embed.html @@ -74,8 +74,8 @@ // that do not support other codecs to be able to play it :) if (sources.length > 0 && !sources.some(({ mimetype }) => mimetype === 'audio/mpeg')) { const source = sources[0].listen_url - const url = new URL(source.test(/^https?:/) - ? source + const url = new URL(source.test(/^https?:/) + ? source : source[0] === '/' ? `${baseUrl}${source}` : `${baseUrl}/${source}`