Skip to content

Commit

Permalink
reduce hover style map (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Jan 24, 2025
1 parent e31b18f commit 1c24251
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,13 @@ function getHoverStylesMap() {
});
}

hoverMap.set(baseSelector, styles);
// only need the style which includes the cursor attribute.
for (const prop in styles) {
if (prop.includes("cursor")) {
hoverMap.set(baseSelector, styles);
break;
}
}
}
}
}
Expand Down

0 comments on commit 1c24251

Please sign in to comment.