(visible)
| 142 | } |
| 143 | |
| 144 | setIframeVisible(visible) { |
| 145 | const classes = this.iframeElement.classList; |
| 146 | if (visible) { |
| 147 | classes.remove("vimium-ui-component-hidden"); |
| 148 | classes.add("vimium-ui-component-visible"); |
| 149 | } else { |
| 150 | classes.add("vimium-ui-component-hidden"); |
| 151 | classes.remove("vimium-ui-component-visible"); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | // Send a message to this UIComponent's iframe's page. |
| 156 | // - data: an object with at least a `name` field. |