From f4a131ae173dcbe8fafabb7bedfa315de19a4320 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 26 Jul 2016 18:57:58 +0800 Subject: [PATCH] z --- game/game.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index bdad8beeb..ab4dd7671 100755 --- a/game/game.js +++ b/game/game.js @@ -3666,8 +3666,10 @@ } }); } - if(lib.device&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<900&& - navigator.userAgent.toLowerCase().indexOf('crosswalk')==-1){ + if(navigator.userAgent.toLowerCase().indexOf('crosswalk')!=-1){ + lib.crosswalk=true; + } + if(lib.device&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<900&&!lib.crosswalk){ game.documentZoom=document.documentElement.offsetWidth/960; game.deviceZoom=game.documentZoom; document.documentElement.style.zoom=game.documentZoom; @@ -13949,6 +13951,7 @@ if(_status.video&&arguments[1]!='video') return; if(_status.skillaudio.contains(name)) return; game.addVideo('playSkillAudio',null,name); + game.print(name); if(name.indexOf('|')