feat: emit listSelector via socket
This commit is contained in:
@@ -100,6 +100,12 @@ export const BrowserWindow = () => {
|
||||
const highlighterHandler = useCallback((data: { rect: DOMRect, selector: string, elementInfo: ElementInfo | null, childSelectors?: string }) => {
|
||||
if (getList === true) {
|
||||
socket?.emit('setGetList', { getList: true });
|
||||
// console.log('Child Selectors are:', data.childSelectors)
|
||||
|
||||
if (listSelector) {
|
||||
socket?.emit('listSelector', { selector: listSelector });
|
||||
}
|
||||
|
||||
console.log('Child Selectors are:', data.childSelectors)
|
||||
}
|
||||
setHighlighterData(data);
|
||||
|
||||
Reference in New Issue
Block a user