Skip to content

Commit

Permalink
Fix Eventlist visible after event ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3OnlyC0D3R committed Mar 12, 2020
1 parent 61cff3e commit 78fe1d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/web/eventquest/js/eventquest.js
Expand Up @@ -18,8 +18,13 @@ FoEproxy.addHandler('QuestService', 'getUpdates', (data, postData) => {
// Nur Events und "active" heraus filtern
EventQuest.Quests = data['responseData'].filter(q => (q['category'] === 'events' && q['state'] === 'accepted'));

if (EventCountdown === false)
window.addEventListener('foe-helper#menu_loaded', HideEventQuest, { capture: false, once: true, passive: true });
if (EventCountdown === false){
window.addEventListener('foe-helper#menu_loaded', HideEventQuest, { capture: false, once: false, passive: true });
try{
HideEventQuest();
return;
}catch(e){}
}

_menu.ShowButton("questlist-Btn");

Expand Down

0 comments on commit 78fe1d8

Please sign in to comment.