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 { a:focus {
outline: none; outline: none;
border-radius: .3rem;
box-shadow: var(--focus-ring); box-shadow: var(--focus-ring);
} }

View file

@ -6,7 +6,7 @@
<capture-options v-else/> <capture-options v-else/>
<div class="preview"> <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> </div>
<button class="capture-btn" :class="{ 'capture-btn--capturing': capturing.status }" @click="startCapture">Capture</button> <button class="capture-btn" :class="{ 'capture-btn--capturing': capturing.status }" @click="startCapture">Capture</button>

View file

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