Co-authored-by: Yash Singh <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
11 lines
381 B
TypeScript
11 lines
381 B
TypeScript
const THREAD_FIND_OPEN_EVENT = "t3:thread-find-open";
|
|
|
|
export function requestThreadFindOpen(): void {
|
|
window.dispatchEvent(new Event(THREAD_FIND_OPEN_EVENT));
|
|
}
|
|
|
|
export function subscribeThreadFindOpen(listener: () => void): () => void {
|
|
window.addEventListener(THREAD_FIND_OPEN_EVENT, listener);
|
|
return () => window.removeEventListener(THREAD_FIND_OPEN_EVENT, listener);
|
|
}
|