emptyfm

Listen to your favorite FM Radio station from your browser.
Log | Files | Refs | README | LICENSE

commit a33dfd192c07dab408b07818212b782bf39a639b
parent c3aeac004cca9e0bac2ff969636028fd2ac3cafc
Author: Nirmal Kumar R <tildezero@gmail.com>
Date:   Tue,  3 Sep 2024 21:36:20 +0530

Correct the logic

Diffstat:
Memptyfm.js | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/emptyfm.js b/emptyfm.js @@ -115,11 +115,7 @@ function fetchMediaType(url, defaultType = "audio/mpeg") { case "m3u8": return [url, "application/x-mpegURL"]; default: - if (defaultType != "audio/mpeg") { - return [url, "application/x-mpegURL"]; - } else { - return [url, defaultType]; - } + return [url, defaultType]; } }