🔗 Made the news button disappear if no rss feed is provided

If the rss feed is empty or missing, the news button will simply not appear for those who don't want to use this feature
This commit is contained in:
Kalitsune 2024-05-12 12:54:47 +02:00
parent a02daa3842
commit 75de114858

View File

@ -961,6 +961,10 @@ async function loadNews(){
const distroData = await DistroAPI.getDistribution()
if(!distroData.rawDistribution.rss) {
loggerLanding.debug('No RSS feed provided.')
// remove the news button
await $('#newsButton').fadeOut(250).promise()
return null
}