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

Function getIconPath

tools/common/taskbarPreview.js:29–35  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

27
28 // Resolve the icon path
29 function getIconPath(filename) {
30 const currentPath = window.location.pathname
31 if (currentPath.includes('/tools/')) {
32 return `../../docs/icons/${filename}`
33 }
34 return `./docs/icons/${filename}`
35 }
36
37 // Create the taskbar HTML (matching the original markup)
38 container.className = 'taskbar taskbar--light'

Callers 1

initTaskbarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected