Skip to content

Commit

Permalink
feat: change tongji script
Browse files Browse the repository at this point in the history
  • Loading branch information
lcxfs1991 committed Jan 23, 2024
1 parent 4c8ecbb commit 1c107ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
10 changes: 4 additions & 6 deletions src/components/Stats/StatsScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ const statsScript = `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?39edd8e76884f07399be96cd422c9af3";
hm.src = "https://hm.baidu.com/hm.js?f92e0e48311f635665d2de225751a349";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`;
export default function StatsScript () {
return (
<script dangerouslySetInnerHTML={{ __html: statsScript }}></script>
);
}
export default function StatsScript() {
return <script dangerouslySetInnerHTML={{ __html: statsScript }}></script>;
}
9 changes: 0 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,5 @@
</head>
<body>
<div id="root"></div>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?f92e0e48311f635665d2de225751a349";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>

0 comments on commit 1c107ee

Please sign in to comment.