Merge branch 'master' of github.com:GlitchFamily/souvenir

This commit is contained in:
wryk 2019-03-10 06:27:58 +01:00
commit 2b89fba51a
3 changed files with 13 additions and 7 deletions

View file

@ -45,7 +45,6 @@ a:hover {
a:focus {
outline: none;
border-radius: .3rem;
box-shadow: var(--focus-ring);
}

View file

@ -6,7 +6,7 @@
<capture-options v-else/>
<div class="preview">
<video ref="preview" class="preview-visual" height="200px" autoplay></video>
<video ref="preview" class="preview-visual" height="200px" preload="yes" autoplay muted playsinline webkit-playsinline></video>
</div>
<button class="capture-btn" :class="{ 'capture-btn--capturing': capturing.status }" @click="startCapture">Capture</button>

View file

@ -10,10 +10,17 @@ module.exports = {
}
},
parallel: false,
chainWebpack: (config) => {
config.module.rule('worker')
.test(/\.worker\.js$/i)
.use('worker-loader')
.loader('worker-loader')
configureWebpack: {
module: {
rules: [
{
test: /\.worker\.js$/,
use: {
loader: 'worker-loader',
options: { inline: true }
}
}
]
}
}
}