remove debug statements.
This commit is contained in:
parent
359d866a99
commit
aca10d328f
4 changed files with 16 additions and 12 deletions
|
|
@ -109,8 +109,6 @@ const prepareVideoPlayer = () => {
|
|||
mediaMetadata['artist'] = props.artist
|
||||
}
|
||||
|
||||
console.log(mediaMetadata)
|
||||
|
||||
player = new Plyr(video.value, {
|
||||
debug: false,
|
||||
clickToPlay: true,
|
||||
|
|
|
|||
|
|
@ -135,14 +135,6 @@ const applyPreferredColorScheme = scheme => {
|
|||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
if (config.app.ui_update_title) {
|
||||
const s = useStateStore()
|
||||
useHead({ title: `YTPTube: ( ${Object.keys(s.queue).length || 0} | ${Object.keys(s.history).length || 0} )` })
|
||||
watch([s.queue, s.history], () => {
|
||||
const title = `YTPTube: ( ${Object.keys(s.queue).length || 0} | ${Object.keys(s.history).length || 0} )`
|
||||
useHead({ title })
|
||||
}, { deep: true })
|
||||
}
|
||||
applyPreferredColorScheme(selectedTheme.value)
|
||||
} catch (e) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,20 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
useHead({ title: 'Index' })
|
||||
const config = useConfigStore()
|
||||
useHead({ title: 'YTPTube' })
|
||||
|
||||
watch(() => config.app.ui_update_title, value => {
|
||||
if (true !== value) {
|
||||
return
|
||||
}
|
||||
|
||||
const s = useStateStore()
|
||||
useHead({ title: `YTPTube: ( ${Object.keys(s.queue).length || 0} | ${Object.keys(s.history).length || 0} )` })
|
||||
watch([s.queue, s.history], () => {
|
||||
const title = `YTPTube: ( ${Object.keys(s.queue).length || 0} | ${Object.keys(s.history).length || 0} )`
|
||||
useHead({ title })
|
||||
})
|
||||
|
||||
}, { immediate: true })
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@
|
|||
import moment from 'moment'
|
||||
import { parseExpression } from 'cron-parser'
|
||||
const config = useConfigStore()
|
||||
console.log(config.tasks)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
Loading…
Reference in a new issue