else clause
This commit is contained in:
parent
71b4e14dd3
commit
456be920d3
1 changed files with 1 additions and 2 deletions
|
|
@ -21,10 +21,9 @@ export async function initHydra(options = {}) {
|
||||||
appendCanvas(hydra);
|
appendCanvas(hydra);
|
||||||
// s0.init({ src: hydraCanvas }); // whats that?
|
// s0.init({ src: hydraCanvas }); // whats that?
|
||||||
}
|
}
|
||||||
|
|
||||||
// if options.detectAudio is true
|
// if options.detectAudio is true
|
||||||
// and current canvas des not detect audio
|
// and current canvas des not detect audio
|
||||||
if (options?.detectAudio && !hydra?.detectAudio) {
|
else if (options?.detectAudio && !hydra?.detectAudio) {
|
||||||
//remove previous canvas without audio detection
|
//remove previous canvas without audio detection
|
||||||
document.getElementById('hydra-canvas').remove();
|
document.getElementById('hydra-canvas').remove();
|
||||||
return initHydra(options);
|
return initHydra(options);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue