| Index: lib/elemHideExceptions.js |
| =================================================================== |
| --- a/lib/elemHideExceptions.js |
| +++ b/lib/elemHideExceptions.js |
| @@ -66,16 +66,18 @@ |
| if (list) |
| list.push(exception); |
| else |
| exceptions.set(selector, [exception]); |
| knownExceptions.add(exception); |
| this.emit("added", exception); |
| + |
| + FilterNotifier.emit("elemhideupdate"); |
| }, |
| /** |
| * Removes an element hiding exception |
| * @param {ElemHideException} exception |
| */ |
| remove(exception) |
| { |
| @@ -85,16 +87,18 @@ |
| let list = exceptions.get(exception.selector); |
| let index = list.indexOf(exception); |
| if (index >= 0) |
| list.splice(index, 1); |
| knownExceptions.delete(exception); |
| this.emit("removed", exception); |
| + |
| + FilterNotifier.emit("elemhideupdate"); |
| }, |
| /** |
| * Checks whether any exception rules are registered for a selector |
| * @param {string} selector |
| * @returns {boolean} |
| */ |
| hasExceptions(selector) |