fix: remove unused code
This commit is contained in:
@@ -102,21 +102,6 @@ export const getElementInformation = async (
|
|||||||
},
|
},
|
||||||
{ x: coordinates.x, y: coordinates.y },
|
{ x: coordinates.x, y: coordinates.y },
|
||||||
);
|
);
|
||||||
|
|
||||||
// if (elementInfo) {
|
|
||||||
// if (elementInfo.tagName === 'A') {
|
|
||||||
// if (elementInfo.innerText) {
|
|
||||||
// console.log(`Link text: ${elementInfo.innerText}, URL: ${elementInfo.url}`);
|
|
||||||
// } else {
|
|
||||||
// console.log(`URL: ${elementInfo.url}`);
|
|
||||||
// }
|
|
||||||
// } else if (elementInfo.tagName === 'IMG') {
|
|
||||||
// console.log(`Image URL: ${elementInfo.imageUrl}`);
|
|
||||||
// } else {
|
|
||||||
// console.log(`Element innerText: ${elementInfo.innerText}`);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
return elementInfo;
|
return elementInfo;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const { message, stack } = error as Error;
|
const { message, stack } = error as Error;
|
||||||
|
|||||||
Reference in New Issue
Block a user