domains/forbes.com.js
authorAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:44:03 +0000 (15:44 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:44:03 +0000 (15:44 +0800)
domains/forbes.com.js

index 71cd4fb..d29519d 100644 (file)
        return null;
     }
     var c = readCookie('forbesUtilCookie');
-  
-    var cfg =JSON.parse(c.replace(/'/g,'"'))
-    if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
-        window.location = cfg.toURL
-    }
+    window.setTimeout(function() {
+        
+        var cfg =JSON.parse(c.replace(/'/g,'"'))
+        console.log(c);
+        if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
+            
+            window.location = cfg.toURL
+        }
    
    
 })();