}
var c = readCookie('forbesUtilCookie');
console.log(c);
- console.log(JSON.parse(c.replace(/'/g,'"')));
-
- if (c && window.pathname.match(/forbes\/welcome/) {
-
+ console.log();
+ var cfg =JSON.parse(c.replace(/'/g,'"'))
+ if (c && window.pathname.match(/forbes\/welcome/) && cfg.toURL) {
+ window.location = cfg.toURL
}
})();
-
-
-{'toURL':'http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/','refURL':'','referrer':''}
-{"toURL":"http://www.forbes.com/sites/johnkang/2016/04/13/chinas-tech-giant-huawei-aims-to-double-b2b-revenue-by-2020/","refURL":"","referrer":""}
\ No newline at end of file
+
\ No newline at end of file