mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 11:31:59 +08:00
@@ -167,7 +167,7 @@ cc.profiler = (function () {
|
||||
|
||||
hideStats: function () {
|
||||
_showFPS = false;
|
||||
if (_fps.parentElement === cc.container) {
|
||||
if (_fps && _fps.parentElement === cc.container) {
|
||||
cc.container.removeChild(_fps);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user