Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(frontend): guard app shell against browser translation crash (#87168)

posthog[bot]7097bc38b254
diff --git a/frontend/src/index.html b/frontend/src/index.html
index de96fdb2e73b..a0553957e937 100644
--- a/frontend/src/index.html
+++ b/frontend/src/index.html
@@ -69,6 +69,9 @@
document.body.prepend(div)
}
</script>
- <div id="root"></div>
+ {# translate="no" stops Chrome/Edge page translation swapping React's text nodes for <font> #}
+ {# elements, which makes React lose nodes it owns and throw NotFoundError on removeChild / #}
+ {# insertBefore, blanking the scene. See https://github.com/facebook/react/issues/11538 #}
+ <div id="root" translate="no"></div>
</body>
</html>