MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / isChatAreaDrop

Function isChatAreaDrop

index.tsx:139–141  ·  view source on GitHub ↗
(target: EventTarget | null)

Source from the content-addressed store, hash-verified

137const CHAT_DROP_ZONE_SELECTOR = "[class*=\"messagesWrapper\"], [class*=\"chatContent\"], [class*=\"channelTextArea\"]";
138
139function isChatAreaDrop(target: EventTarget | null): boolean {
140 return target instanceof Element && Boolean(target.closest(CHAT_DROP_ZONE_SELECTOR));
141}
142
143function handleDragOver(event: DragEvent): void {
144 if (!settings.store.bypassDragDrop) return;

Callers 2

handleDragOverFunction · 0.85
handleFileDropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected