MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / cleanup

Function cleanup

modules/action/context/dropdown.js:729–733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

727
728 // Cleanup on page unload
729 const cleanup = () => {
730 clearInterval(cleanupInterval);
731 detector.clear();
732 console.log('🧹 Dropdown detection cleaned up');
733 };
734
735 // beforeunload doesn't always fire (bfcache, mobile browsers)
736 window.addEventListener('beforeunload', cleanup);

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected