mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 03:32:12 -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()
|
const distroData = await DistroAPI.getDistribution()
|
||||||
if(!distroData.rawDistribution.rss) {
|
if(!distroData.rawDistribution.rss) {
|
||||||
loggerLanding.debug('No RSS feed provided.')
|
loggerLanding.debug('No RSS feed provided.')
|
||||||
|
|
||||||
|
// remove the news button
|
||||||
|
await $('#newsButton').fadeOut(250).promise()
|
||||||
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user