Skip to content

Automate browser based workflows with AI

Fix linting issue (#453)

Suchintanbb19a8ab8ea7
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 1c13e441b..0a30bc094 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -1146,15 +1146,17 @@ function createHintMarkersForGroups(groups) {
for (let i = 0; i < hintMarkers.length; i++) {
const hintMarker = hintMarkers[i];
hintMarker.hintString = hintStrings[i];
- try {
+ try {
hintMarker.element.innerHTML = hintMarker.hintString.toUpperCase();
} catch (e) {
// Ensure trustedTypes is available
- if (typeof trustedTypes !== 'undefined') {
+ if (typeof trustedTypes !== "undefined") {
const escapeHTMLPolicy = trustedTypes.createPolicy("default", {
createHTML: (string) => string,
});
- hintMarker.element.innerHTML = escapeHTMLPolicy.createHTML(hintMarker.hintString.toUpperCase());
+ hintMarker.element.innerHTML = escapeHTMLPolicy.createHTML(
+ hintMarker.hintString.toUpperCase(),
+ );
} else {
console.error("trustedTypes is not supported in this environment.");
}