(target)
| 47 | } |
| 48 | |
| 49 | function 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 | |
| 55 | window.document.addEventListener('dragover', e => { |
| 56 | const target = e.composedPath()[0]; |