MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / dragDropTargetIsPrompt

Function dragDropTargetIsPrompt

javascript/dragdrop.js:49–53  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

47}
48
49function dragDropTargetIsPrompt(target) {
50 if (target?.placeholder && target?.placeholder.indexOf("Prompt") >= 0) return true;
51 if (target?.parentNode?.parentNode?.className?.indexOf("prompt") > 0) return true;
52 return false;
53}
54
55window.document.addEventListener('dragover', e => {
56 const target = e.composedPath()[0];

Callers 1

dragdrop.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected