Skip to content

Commit 76086e9

Browse files
committed
fix cc.game.config['showFPS'] bug
``` //project.json ... 'showFPS' : false, ... ``` ``` //CCBoot.js ... config[CONFIG_KEY.showFPS] = config[CONFIG_KEY.showFPS] || true;// this property will be set to true ... ```
1 parent 5819dea commit 76086e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCBoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ cc.game = /** @lends cc.game# */{
23742374
modules = config[CONFIG_KEY.modules];
23752375

23762376
// Configs adjustment
2377-
config[CONFIG_KEY.showFPS] = config[CONFIG_KEY.showFPS] || true;
2377+
config[CONFIG_KEY.showFPS] = typeof config[CONFIG_KEY.showFPS] === 'undefined' ? true : config[CONFIG_KEY.showFPS];
23782378
config[CONFIG_KEY.engineDir] = config[CONFIG_KEY.engineDir] || "frameworks/cocos2d-html5";
23792379
if (config[CONFIG_KEY.debugMode] == null)
23802380
config[CONFIG_KEY.debugMode] = 0;

0 commit comments

Comments
 (0)