cpu-audio icon indicating copy to clipboard operation
cpu-audio copied to clipboard

Include specific JS code in themed build

Open dascritch opened this issue 4 years ago • 1 comments

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.

dascritch avatar Apr 03 '21 09:04 dascritch

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.

dascritch avatar Apr 03 '21 09:04 dascritch