Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: disable react-devtools

shuai6ffa5470cbc1
diff --git a/ui/public/index.html b/ui/public/index.html
index f5a9c141..f15dd970 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -89,6 +89,10 @@
</div>
</body>
<script>
+ // disable react devtools
+ if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') {
+ window.__REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function () {};
+ }
/**
* @description: Prompt that the browser version is too low
*/