chore: lint
This commit is contained in:
@@ -112,10 +112,8 @@ export const BrowserWindow = () => {
|
|||||||
const highlighterHandler = useCallback((data: { rect: DOMRect, selector: string, elementInfo: ElementInfo | null, childSelectors?: string[] }) => {
|
const highlighterHandler = useCallback((data: { rect: DOMRect, selector: string, elementInfo: ElementInfo | null, childSelectors?: string[] }) => {
|
||||||
if (getList === true) {
|
if (getList === true) {
|
||||||
socket?.emit('setGetList', { getList: true });
|
socket?.emit('setGetList', { getList: true });
|
||||||
|
|
||||||
if (listSelector) {
|
if (listSelector) {
|
||||||
socket?.emit('listSelector', { selector: listSelector });
|
socket?.emit('listSelector', { selector: listSelector });
|
||||||
|
|
||||||
if (paginationMode) {
|
if (paginationMode) {
|
||||||
// In pagination mode, we want to set the highlighterData regardless of childSelectors
|
// In pagination mode, we want to set the highlighterData regardless of childSelectors
|
||||||
setHighlighterData(data);
|
setHighlighterData(data);
|
||||||
@@ -132,7 +130,7 @@ export const BrowserWindow = () => {
|
|||||||
} else {
|
} else {
|
||||||
setHighlighterData(data); // For non-list steps
|
setHighlighterData(data); // For non-list steps
|
||||||
}
|
}
|
||||||
}, [highlighterData, getList, socket, listSelector, paginationMode]);
|
}, [highlighterData, getList, socket, listSelector, paginationMode]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user