From 66bd629e55f98d8467ddf6a7d625a6b9890d0da1 Mon Sep 17 00:00:00 2001 From: Next <1406099478@qq.com> Date: Thu, 18 Apr 2019 13:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D1.x=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/app.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/js/app.js b/js/app.js index 1e1117f..321fe6e 100644 --- a/js/app.js +++ b/js/app.js @@ -4,7 +4,7 @@ let app = new Vue({ needUpdate: false, is3DNode: false, isDevMode: false, - isShowProfile: true, + isShowProfile: false, isShowCache: false, isAutoRefreshTree: true, isDarkTheme: false, @@ -407,12 +407,6 @@ let app = new Vue({ gameCanvas.style.height = '100%'; // document.body.style.cssText+="-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg)"; }, - initProfiler() { - let profiler = cc.find('PROFILER-NODE'); - if (profiler) { - cc.log(profiler); - } - }, initConsoleUtil() { if (cc.tree) return; cc.tree = function (key) { @@ -545,7 +539,6 @@ let app = new Vue({ document.body.insertBefore(document.getElementById('app'), document.body.firstChild); let onCCInit = () => { - this.initProfiler(); this.initConsoleUtil(); if (cc.sys.isMobile) { this.fitFullScreen(); @@ -568,7 +561,7 @@ let app = new Vue({ }, 0); } let checkCC = () => { - if (window.cc) { + if (window.cc && window.cc.director) { onCCInit(); clearInterval(this.$data.intervalId); } else {