Skip to content

Commit 288c390

Browse files
committed
Merge pull request #1551 from thomas-jablonski/develop
add cocos attr to the script element in templates
2 parents 6b5e8bc + 3e9e295 commit 288c390

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/js-template-default/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
<script src="res/loading.js"></script>
2424
<canvas id="gameCanvas" width="800" height="450"></canvas>
2525
<script src="frameworks/cocos2d-html5/CCBoot.js"></script>
26-
<script src="main.js"></script>
26+
<script cocos src="main.js"></script>
2727
</body>
28-
</html>
28+
</html>

templates/js-template-runtime/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
<body style="padding:0; margin: 0; background: #000;">
2323
<canvas id="gameCanvas" width="800" height="450"></canvas>
2424
<script src="frameworks/cocos2d-html5/CCBoot.js"></script>
25-
<script src="main.js"></script>
25+
<script cocos src="main.js"></script>
2626
</body>
27-
</html>
27+
</html>

0 commit comments

Comments
 (0)