prettier code formatting
This commit is contained in:
parent
a58ac967a6
commit
0a280e9399
1 changed files with 6 additions and 8 deletions
|
|
@ -1,9 +1,8 @@
|
|||
import { getDrawContext } from '@strudel.cycles/core';
|
||||
|
||||
let options = ""
|
||||
let options = '';
|
||||
|
||||
export async function initHydra(config) {
|
||||
|
||||
//load and init hydra
|
||||
if (!document.getElementById('hydra-canvas')) {
|
||||
const { canvas: testCanvas } = getDrawContext();
|
||||
|
|
@ -19,11 +18,10 @@ export async function initHydra(config) {
|
|||
if (options != JSON.stringify(config)) {
|
||||
options = JSON.stringify(config);
|
||||
|
||||
new Hydra(
|
||||
{
|
||||
new Hydra({
|
||||
canvas: document.getElementById('hydra-canvas'),
|
||||
detectAudio: config?.audio
|
||||
})
|
||||
detectAudio: config?.audio,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue