mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
added baidu tongji
This commit is contained in:
12
frontend/src/admin/baidu.ts
Normal file
12
frontend/src/admin/baidu.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// baidu tongji
|
||||
export const initBaiduTonji = () => {
|
||||
if (localStorage.getItem('useStats') !== '0') {
|
||||
window._hmt = window._hmt || [];
|
||||
(function () {
|
||||
const hm = document.createElement('script');
|
||||
hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add';
|
||||
const s = document.getElementsByTagName('script')[0];
|
||||
s?.parentNode?.insertBefore(hm, s);
|
||||
})();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user