MCPcopy Create free account
hub / github.com/MemeTray/MemeTray / toggle

Function toggle

tools/common/taskbarPreview.js:206–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205 // Toggle visibility
206 function toggle() {
207 const isVisible = container.style.display !== 'none'
208 container.style.display = isVisible ? 'none' : 'flex'
209
210 // Initialize drag-and-drop support on first open
211 if (!isVisible && !dragDropInitialized) {
212 initDragDrop()
213 dragDropInitialized = true
214 }
215 }
216
217 function show() {
218 container.style.display = 'flex'

Callers

nothing calls this directly

Calls 1

initDragDropFunction · 0.85

Tested by

no test coverage detected