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

index d29519d..087290a 100644 (file)
        return null;
     }
     var c = readCookie('forbesUtilCookie');
-    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
+            console.log('firing redirect');
+            window.setTimeout(function() {
+                window.location = cfg.toURL;
+            }, 3000);
+                
         }