MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / toggle

Function toggle

src/lib/devTools.js:123–133  ·  view source on GitHub ↗

* Toggle the inspector panel visibility

()

Source from the content-addressed store, hash-verified

121 * Toggle the inspector panel visibility
122 */
123 toggle() {
124 if (!isInitialized) {
125 window.toast?.("Developer mode is not enabled");
126 return;
127 }
128 if (erudaInstance?._isShow) {
129 this.hide();
130 } else {
131 this.show();
132 }
133 },
134
135 /**
136 * Destroy Eruda instance

Callers

nothing calls this directly

Calls 2

hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected