By default the packaged HTML games have 4 buttons on the bottom (pause, resume, clear data, fullscreen). If I comment these buttons out in the .html file, the game won’t load and shows an error “Uncaught TypeError: Cannot read property ‘addEventListener’ of null”
How do I solve this? This is the code I commented out:
<div class="col-sm-2 text-center"></div>
<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="Module['pauseMainLoop']();" >Pause</button></div>
<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="Module['resumeMainLoop']();" >Resume</button></div>
<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="$.jStorage.flush()">Clear Stored Game</button></div>
<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" id="fullscreen_request" >FullScreen</button></div>
<div class="col-sm-2 text-center"></div>