Closed jes closed 4 months ago
OK, I've worked it out. The code in question is:
playButton.addEventListener('click', () => {
mounted.isPaused() ? mounted.resume() : mounted.pause();
});
Preceded by:
// todo: should we create these elements if not exists?
const playButton = document.getElementById('testbed-play');
So, I guess yeah, maybe it should create these elements if not exists? Or perhaps console.log
to tell people what to do. Or perhaps include them in the example HTML.
Closing issue, PR is approved.
I'm trying to use the Planck+Testbed example from https://piqnt.com/planck.js/docs/install :
This doesn't work because closing the script tag with
.../>
doesn't work. So I changed that to...></script>
, and then I get:This is Firefox 116.0.2 on Linux.