mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed message filters not working.
This commit is contained in:
@@ -160,7 +160,9 @@ function setFilteredUIData(evt) {
|
||||
/* Also run message filters on the current card elements. */
|
||||
var cards = document.getElementById('main').getElementsByTagName('loot-plugin-card');
|
||||
for (var i = 0; i < cards.length; ++i) {
|
||||
cards[i].onMessagesChange(); // Calls Plugin.getUIMessages(), which calls filters.applyMessageFilters().
|
||||
// Force re-filtering of messages.
|
||||
cards[i].data.computed.messages = cards[i].data.getUIMessages();
|
||||
cards[i].onMessagesChange();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user