Skip to content

Commit b8ea3d6

Browse files
committed
Merge pull request #1557 from dingpinglv/develop
Fixed a bug of template that it doesn't work when it doesn't add loading.js
2 parents d71e413 + 92995c5 commit b8ea3d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/js-template-default/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*/
4949

5050
cc.game.onStart = function(){
51-
if(!cc.sys.isNative) //If referenced loading.js, please remove it
51+
if(!cc.sys.isNative && document.getElementById("cocosLoading")) //If referenced loading.js, please remove it
5252
document.body.removeChild(document.getElementById("cocosLoading"));
5353

5454
cc.view.adjustViewPort(true);

0 commit comments

Comments
 (0)