Browse Source

技术圈百度统计js代码修改

洪舒 5 years ago
parent
commit
1948fe1811
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app.html

+ 2 - 1
app.html

@@ -11,7 +11,8 @@
   (function () {
     var markIsApp = document.getElementById("markIsAppWebview")
     var isApp = Boolean(markIsApp && markIsApp.dataset && markIsApp.dataset.app)
-    if (!isApp) {
+    var host = window.location.host;
+    if (!isApp && host.indexOf("jishuin") === -1) {
       var hm = document.createElement('script');
       hm.src = '//hm.baidu.com/hm.js?c92adf6182a39eb23c24cf43abc3f439';
       var s = document.getElementsByTagName('script')[ 0 ];