chore: lint
This commit is contained in:
@@ -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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user