| Index: include.postload.js |
| =================================================================== |
| --- a/include.postload.js |
| +++ b/include.postload.js |
| @@ -56,6 +56,11 @@ |
| { |
| var overlay = addElementOverlay(element); |
| + // If the element isn't displayed no overlay will be added. |
| + // Moreover, we don't need to highlight anything then. |
| + if (!overlay) |
| + return; |
| + |
| highlightElement(overlay, shadowColor, backgroundColor); |
| overlay.style.pointerEvents = "none"; |