chore: lint

This commit is contained in:
karishmas6
2024-08-06 02:17:28 +05:30
parent 864d4e1ad2
commit 39e3ddd593

View File

@@ -112,23 +112,23 @@ export const BrowserWindow = () => {
clickY <= highlightRect.bottom clickY <= highlightRect.bottom
) { ) {
if (getText === true) { if (getText === true) {
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || ''); const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '');
if (options.length > 1) { if (options.length > 1) {
setAttributeOptions(options); setAttributeOptions(options);
setSelectedElement({ setSelectedElement({
selector: highlighterData.selector, selector: highlighterData.selector,
info: highlighterData.elementInfo info: highlighterData.elementInfo
}); });
setShowAttributeModal(true); setShowAttributeModal(true);
} else { } else {
addBrowserStep('', highlighterData.elementInfo?.innerText || '', { addBrowserStep('', highlighterData.elementInfo?.innerText || '', {
selector: highlighterData.selector, selector: highlighterData.selector,
tag: highlighterData.elementInfo?.tagName, tag: highlighterData.elementInfo?.tagName,
attribute: 'innerText' attribute: 'innerText'
}); });
}
} }
} }
}
} }
}; };
@@ -145,7 +145,6 @@ export const BrowserWindow = () => {
default: default:
data = selectedElement.info?.innerText || ''; data = selectedElement.info?.innerText || '';
} }
{ {
if (getText === true) { if (getText === true) {
addBrowserStep('', data, { addBrowserStep('', data, {