| Index: lib/elemHide.js |
| =================================================================== |
| --- a/lib/elemHide.js |
| +++ b/lib/elemHide.js |
| @@ -132,17 +132,17 @@ var ElemHide = exports.ElemHide = |
| if (!(selector in exceptions)) |
| exceptions[selector] = []; |
| exceptions[selector].push(filter); |
| // If this is the first exception for a previously unconditionally |
| // applied element hiding selector we need to take care to update the |
| // lookups. |
| let filterKey = filterKeyBySelector[selector]; |
| - if (filterKey) |
| + if (typeof filterKey != "undefined") |
| { |
| this._addToFiltersByDomain(filterKey, filterByKey[filterKey]); |
| delete filterKeyBySelector[selector]; |
| unconditionalSelectors = unconditionalFilterKeys = null; |
| } |
| knownExceptions[filter.text] = true; |
| } |