Browse Source

cnzz https

yangc 7 years ago
parent
commit
d5b0e1efd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app.html

+ 1 - 1
app.html

@@ -32,7 +32,7 @@
       hm.src = "https://hm.baidu.com/hm.js?34793672f88552a77437f2cee7864118;"
       var s = d.getElementsByTagName("script")[0];
       s.parentNode.insertBefore(hm, s);
-      var cnzz_protocol = (("https:" == d.location.protocol) ? " https://" : " http://");
+      var cnzz_protocol = (("https" === w.location.protocol.split(':')[0]) ? " https://" : " http://");
       d.write(unescape("%3Cspan id='cnzz_stat_icon_1267002346'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1267002346%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
 
       // 百度推送