format
This commit is contained in:
parent
e0e896d4b5
commit
fb7a9e2083
1 changed files with 5 additions and 5 deletions
|
|
@ -24,10 +24,10 @@ export async function initHydra(config) {
|
||||||
// and current canvas des not detect audio
|
// and current canvas des not detect audio
|
||||||
if (config?.audio && !hydra.detectAudio) {
|
if (config?.audio && !hydra.detectAudio) {
|
||||||
//remove previous canvas without audio detection
|
//remove previous canvas without audio detection
|
||||||
document.getElementById('hydra-canvas').remove()
|
document.getElementById('hydra-canvas').remove();
|
||||||
// create and append a new audio responsive canvas
|
// create and append a new audio responsive canvas
|
||||||
hydra = new Hydra({ detectAudio: audio });
|
hydra = new Hydra({ detectAudio: audio });
|
||||||
appendCanvas(hydra)
|
appendCanvas(hydra);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue