fix: remove unused code

This commit is contained in:
karishmas6
2024-09-03 09:47:40 +05:30
parent 60629f8382
commit b4f8cbb901

View File

@@ -102,21 +102,6 @@ export const getElementInformation = async (
},
{ 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;
} catch (error) {
const { message, stack } = error as Error;