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

Function destroy

src/lib/devTools.js:138–145  ·  view source on GitHub ↗

* Destroy Eruda instance

()

Source from the content-addressed store, hash-verified

136 * Destroy Eruda instance
137 */
138 destroy() {
139 if (!isInitialized) return;
140 erudaInstance?.destroy();
141 erudaInstance = null;
142 isInitialized = false;
143 const script = document.getElementById("eruda-script");
144 if (script) script.remove();
145 },
146};
147
148export default devTools;

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected