feat: use innerText instead of selector

This commit is contained in:
karishmas6
2024-07-27 02:36:07 +05:30
parent 802deb432e
commit 6cb0a8f3ae

View File

@@ -89,7 +89,7 @@ export const BrowserWindow = () => {
clickY >= highlightRect.top && clickY >= highlightRect.top &&
clickY <= highlightRect.bottom clickY <= highlightRect.bottom
) { ) {
addBrowserStep('', highlighterData.selector); addBrowserStep('', highlighterData.elementInfo?.innerText || '');
} }
} }
}; };