Skip to content

Commit 1c107ee

Browse files
committed
feat: change tongji script
1 parent 4c8ecbb commit 1c107ee

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/components/Stats/StatsScript.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ const statsScript = `
22
var _hmt = _hmt || [];
33
(function() {
44
var hm = document.createElement("script");
5-
hm.src = "https://hm.baidu.com/hm.js?39edd8e76884f07399be96cd422c9af3";
5+
hm.src = "https://hm.baidu.com/hm.js?f92e0e48311f635665d2de225751a349";
66
var s = document.getElementsByTagName("script")[0];
77
s.parentNode.insertBefore(hm, s);
88
})();
99
`;
10-
export default function StatsScript () {
11-
return (
12-
<script dangerouslySetInnerHTML={{ __html: statsScript }}></script>
13-
);
14-
}
10+
export default function StatsScript() {
11+
return <script dangerouslySetInnerHTML={{ __html: statsScript }}></script>;
12+
}

src/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,5 @@
44
</head>
55
<body>
66
<div id="root"></div>
7-
<script>
8-
var _hmt = _hmt || [];
9-
(function() {
10-
var hm = document.createElement("script");
11-
hm.src = "https://hm.baidu.com/hm.js?f92e0e48311f635665d2de225751a349";
12-
var s = document.getElementsByTagName("script")[0];
13-
s.parentNode.insertBefore(hm, s);
14-
})();
15-
</script>
167
</body>
178
</html>

0 commit comments

Comments
 (0)