diff --git a/index.js b/index.js index b524985..a28b8c5 100644 --- a/index.js +++ b/index.js @@ -1479,7 +1479,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) { return true } if (t === 'update-forum-tag-filter') { - platform.setForumTagFilter(msg.tag) + if (msg.toggle) platform.toggleForumTagFilter(msg.tag) + else platform.setForumTagFilter(msg.tag) pushState() return true }