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

index 2d5e679..14316d9 100644 (file)
@@ -1,7 +1,7 @@
 
 // test http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/#44324814fe6d
 
-(window.setTimeout(function () {
+window.setTimeout(function () {
     
    
     function readCookie(name) {
     var c = readCookie('forbesUtilCookie');
     
         
-        var cfg =JSON.parse(c.replace(/'/g,'"'))
-        console.log(c);
-        if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
-            console.log('firing redirect');
-            window.setTimeout(function() {
-                window.location = cfg.toURL;
-            }, 3000);
-                
-        }
+    var cfg =JSON.parse(c.replace(/'/g,'"'))
+    console.log(c);
+    if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
+        console.log('firing redirect');
+        window.setTimeout(function() {
+            window.location = cfg.toURL;
+        }, 3000);
+            
+    }
    
    
 }, 1000);