MCPcopy
hub / github.com/philc/vimium / setIframeVisible

Method setIframeVisible

content_scripts/ui_component.js:144–153  ·  view source on GitHub ↗
(visible)

Source from the content-addressed store, hash-verified

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.

Callers 5

loadMethod · 0.95
showMethod · 0.95
hideMethod · 0.95
initFunction · 0.80
pasteResponseFunction · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected