mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-21 19:22:13 -08:00
🔗 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:
parent
a02daa3842
commit
75de114858
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user