Skip to content

Commit ee557d4

Browse files
committed
Merge pull request cocos2d#3157 from yuyangame/patch-1
fix cc.game.config['showFPS'] bug
2 parents 5819dea + 76086e9 commit ee557d4

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)