MCPcopy Create free account
hub / github.com/instantdb/instant / toggleView

Function toggleView

client/packages/core/src/devtool.ts:39–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 function toggleView() {
40 if (iframeContrainer.isVisible()) {
41 iframeContrainer.element.style.display = 'none';
42 } else {
43 iframeContrainer.element.style.display = 'block';
44
45 // lazily render iframe on first open
46 if (!iframeContrainer.element.contains(iframe.element)) {
47 iframeContrainer.element.appendChild(iframe.element);
48 }
49 }
50 }
51
52 function dispose() {
53 iframeContrainer.element.remove();

Callers 2

onPostMessageFunction · 0.85
onKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected