forked from newthuhole/hole_thu_frontend
implement config
This commit is contained in:
@@ -29,7 +29,14 @@
|
||||
var _czc=_czc||[];
|
||||
_czc.push(["_setAccount","1274501752"]);
|
||||
_czc.push(["_setCustomVar","has_token",localStorage['TOKEN']?'yes':'no',1]);
|
||||
_czc.push(["_setCustomVar","background_image",localStorage['REPLACE_ERIRI_WITH_URL']||'null',0]);
|
||||
try {
|
||||
var config=JSON.parse(localStorage['hole_config']||'{}');
|
||||
for(var key in config)
|
||||
if(config.hasOwnProperty(key))
|
||||
_czc.push(["_setCustomVar","config_"+key,JSON.stringify(config[key]),0]);
|
||||
} catch(e) {
|
||||
console.trace(e);
|
||||
}
|
||||
var cnzz_s_tag = document.createElement('script');
|
||||
cnzz_s_tag.type = 'text/javascript';
|
||||
cnzz_s_tag.async = true;
|
||||
|
||||
Reference in New Issue
Block a user