mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-08 10:51:53 +00:00
style: Some lint
This commit is contained in:
parent
49148d4d10
commit
61d9e55568
5 changed files with 7 additions and 8 deletions
|
@ -22,7 +22,7 @@ export default function register () {
|
|||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
const swUrl = `/service-worker.js`
|
||||
const swUrl = '/service-worker.js'
|
||||
|
||||
if (isLocalhost) {
|
||||
// This is running on localhost. Lets check if a service worker still exists or not.
|
||||
|
|
|
@ -10,7 +10,7 @@ export async function getCamera (shouldFaceUser) {
|
|||
preferredFacingMode
|
||||
].map(facingModeConstraint => ({ video: { facingMode: facingModeConstraint } }))
|
||||
|
||||
for (let constraints of constraintsList) {
|
||||
for (const constraints of constraintsList) {
|
||||
try {
|
||||
console.log(constraints)
|
||||
return {
|
||||
|
|
|
@ -51,7 +51,6 @@ export function capture({ mediaStream, facingMode }, duration, progressCallback)
|
|||
const destinationRectangle = makeRectangle(0, 0, canvas.width, canvas.height)
|
||||
const soureRectangle = crop(makeRectangle(0, 0, video.videoWidth, video.videoHeight))
|
||||
|
||||
|
||||
captureFrame()
|
||||
|
||||
const intervalId = setInterval(captureFrame, delayTime)
|
||||
|
|
|
@ -4,7 +4,7 @@ export function countdown (n, delay, onStep) {
|
|||
return task(resolver => {
|
||||
let count = 0
|
||||
|
||||
let intervalId = setInterval(() => {
|
||||
const intervalId = setInterval(() => {
|
||||
count++
|
||||
onStep(n - count)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ export default {
|
|||
computed: {
|
||||
pathDashOffset () {
|
||||
if (this.percent) {
|
||||
let to = this.progressPerimeter * ((100 - this.percent) / 100)
|
||||
const to = this.progressPerimeter * ((100 - this.percent) / 100)
|
||||
return Math.max(0, to) // Prevent negative number
|
||||
}
|
||||
return this.progressPerimeter
|
||||
|
|
Loading…
Reference in a new issue