Browse Source

perf: 百度统计更换

wangcz 6 years ago
parent
commit
26f4bd68c2
1 changed files with 2 additions and 10 deletions
  1. 2 10
      app.html

+ 2 - 10
app.html

@@ -23,8 +23,9 @@
         appendScript('https://cdn.bootcss.com/html5shiv/r29/html5.min.js')
         appendScript('https://cdn.bootcss.com/js-polyfills/0.1.33/polyfill.min.js')
       }
+      // 百度统计
       var hm = d.createElement("script");
-      hm.src = "https://hm.baidu.com/hm.js?34793672f88552a77437f2cee7864118;"
+      hm.src = "https://hm.baidu.com/hm.js?9fddee7d39cad3d585f70d0692af93ea";
       var s = d.getElementsByTagName("script")[0];
       s.parentNode.insertBefore(hm, s);
       var cnzz_protocol = (("https:" == d.location.protocol) ? " https://" : " http://");
@@ -47,15 +48,6 @@
         w.addEventListener(resizeEvt, recalc, false)
         d.addEventListener('DOMContentLoaded', recalc, false)
       }
-
-      // 百度统计
-      var _hmt = _hmt || [];
-      (function() {
-        var hm = document.createElement("script");
-        hm.src = "https://hm.baidu.com/hm.js?9fddee7d39cad3d585f70d0692af93ea";
-        var s = document.getElementsByTagName("script")[0];
-        s.parentNode.insertBefore(hm, s);
-      })();
     })(window, document)
   </script>
 </head>