File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1818 </ style >
1919 < script >
2020 var _hmt = _hmt || [ ] ;
21+ var isGithub = location . host . indexOf ( 'github' ) !== - 1 ;
22+ var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d' ;
2123 ( function ( ) {
22- const hm = document . createElement ( 'script' )
23- hm . src = 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867'
24- const s = document . getElementsByTagName ( 'script' ) [ 0 ]
25- s . parentNode . insertBefore ( hm , s )
24+ var hm = document . createElement ( 'script' ) ;
25+ hm . src = src ;
26+ var s = document . getElementsByTagName ( 'script' ) [ 0 ] ;
27+ s . parentNode . insertBefore ( hm , s ) ;
2628 } ) ( )
2729 </ script >
2830</ head >
5052 </ script >
5153</ body >
5254
53- </ html >
55+ </ html >
You can’t perform that action at this time.
0 commit comments