Browse Source

Docsify Auto Published

Willin Wang 6 years ago
parent
commit
0372c799e1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      config.js
  2. 1 1
      package.json

+ 1 - 1
config.js

@@ -10,7 +10,7 @@ function getReadState() {
   if (window.localStorage) {
     if (document.referrer === '') {
       var url = localStorage.getItem('leader.url');
-      if (url && location.href != url) {
+      if (!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) && url && location.href !== url) {
         location.href = url;
         setTimeout(window.scrollTo(0, ~~localStorage.getItem('leader.top')), 300);
       }

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "leader.js.cool",
-  "version": "3.0.8",
+  "version": "3.0.9",
   "description": "不可替代的团队领袖培养计划",
   "main": "config.js",
   "scripts": {