Omnibus commited on
Commit
234b8a1
1 Parent(s): c3f70a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ var gameOver = false;
43
  var scoreText;
44
 
45
  var game = new Phaser.Game(config);
46
- document.body.appendChild(game)
47
 
48
  function preload ()
49
  {
@@ -222,7 +222,7 @@ with gr.Blocks() as app:
222
  </head>
223
  <body>
224
  <button type="testButton" onclick="testFn()"> Start </button>
225
- <div></div>
226
  </body>
227
  </html>""")
228
 
 
43
  var scoreText;
44
 
45
  var game = new Phaser.Game(config);
46
+ document.getElementById('demo').innerHTML = game
47
 
48
  function preload ()
49
  {
 
222
  </head>
223
  <body>
224
  <button type="testButton" onclick="testFn()"> Start </button>
225
+ <div id="demo"></div>
226
  </body>
227
  </html>""")
228