File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -508,11 +508,15 @@ <h4 class="card-title">{{ loginType == "login" ? "登录" : (loginType == "regis
508
508
< script >
509
509
var _hmt = _hmt || [ ] ;
510
510
( function ( ) {
511
- var hm = document . createElement ( "script" ) ;
512
- hm . src = "https://hm.baidu.com/hm.js?b8fc421d7c0dc354c6c8fb5a2c4f7729" ; //cn
513
- // hm.src = "https://hm.baidu.com/hm.js?965ec968d2d53b729b90efc7ffb3ead2"; //org
514
- var s = document . getElementsByTagName ( "script" ) [ 0 ] ;
515
- s . parentNode . insertBefore ( hm , s ) ;
511
+ try {
512
+ var hm = document . createElement ( "script" ) ;
513
+ hm . src = "https://hm.baidu.com/hm.js?b8fc421d7c0dc354c6c8fb5a2c4f7729" ; //cn
514
+ // hm.src = "https://hm.baidu.com/hm.js?965ec968d2d53b729b90efc7ffb3ead2"; //org
515
+ var s = document . getElementsByTagName ( "script" ) [ 0 ] ;
516
+ s . parentNode . insertBefore ( hm , s ) ;
517
+ } catch ( e ) {
518
+ console . log ( 'BaiduStatistics: catch\n' + e . message )
519
+ }
516
520
} ) ( ) ;
517
521
</ script >
518
522
<!-- 百度统计 >>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
You can’t perform that action at this time.
0 commit comments