cnzz check standalone

This commit is contained in:
xmcp
2019-08-22 17:46:32 +08:00
parent d05c2a0c8b
commit 480969519c
3 changed files with 41 additions and 39 deletions

View File

@@ -31,6 +31,7 @@
var _czc=_czc||[];
_czc.push(["_setAccount","1274501752"]);
_czc.push(["_setCustomVar","has_token",localStorage['TOKEN']?'yes':'no',1]);
_czc.push(["_setCustomVar","standalone",((window.matchMedia('(display-mode: standalone)').matches) || (window.navigator.standalone))?'yes':'no',1]);
try {
var config=JSON.parse(localStorage['hole_config']||'{}');
for(var key in config)