cpu-audio
cpu-audio copied to clipboard
Include specific JS code in themed build
It's quite easy : we already build a javascript to include CSS and HTML template in the ./make.sh system. We can see if we have a specific.js , include it in a document.addEventListener('CPU_ready', function, {once:true});
It won't have access to most of the private methods, but it may be enough.
Watch out, as CPU_ready is triggered for EACH webcomponent started on the page. If you've got 3 players and 1 controller, you will get 4 calls.