Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

comment: update comment in index.js

mingzhong.li1fccd380a48f
diff --git a/browser_use/dom/dom_tree/index.js b/browser_use/dom/dom_tree/index.js
index d23dc3aaf..a605a784c 100644
--- a/browser_use/dom/dom_tree/index.js
+++ b/browser_use/dom/dom_tree/index.js
@@ -140,7 +140,7 @@
container.style.left = "0";
container.style.width = "100%";
container.style.height = "100%";
- // Make sure to use the maximum valid value in zIndex to avoid being blocked by other elements
+ // Use the maximum valid value in zIndex to ensure the element is not blocked by overlapping elements.
container.style.zIndex = "2147483647";
container.style.backgroundColor = 'transparent';
document.body.appendChild(container);