From 259dd18f41d9ed5b633bcfc01207def6e0ba0457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Fri, 14 Jun 2019 23:57:48 +0200 Subject: [PATCH] Ayy --- src/index.html | 2 +- src/index.js | 4 +++- webpack.config.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 975c4ee..e498229 100644 --- a/src/index.html +++ b/src/index.html @@ -1,7 +1,7 @@ - + Untitled diff --git a/src/index.js b/src/index.js index a9e7e3f..3a4298d 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,8 @@ import HorizontalLinesAnimation from './horizontal-lines.js'; import SquaresAnimation from './squares.js'; import CirclesAnimation from './circles.js'; +const ANIMATION_TIME = 10 * 60 * 1000; + async function main() { const audioCtx = new AudioContext(); const microphone = await navigator.mediaDevices.getUserMedia({ audio: true }); @@ -51,7 +53,7 @@ async function main() { } activate(animations[animationNum]); - }, 10000); + }, ANIMATION_TIME); }; sketch.draw = () => { diff --git a/webpack.config.js b/webpack.config.js index 196b74b..66d9241 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -47,6 +47,7 @@ module.exports = { devServer: { contentBase: path.join(__dirname, 'dist'), compress: true, + host: '0.0.0.0', port: 8080, hot: true, }