More cleanup

This commit is contained in:
Luca 2021-03-27 19:01:05 +01:00
parent 271a45e2b0
commit 3cca33eac3
4 changed files with 0 additions and 8 deletions

View File

@ -263,7 +263,6 @@ export default Vue.extend({
const currentProfile = JSON.parse(JSON.stringify(this.profileList[this.activeProfile]))
const primaryProfile = JSON.parse(JSON.stringify(this.profileList[0]))
console.log("PRIMARY PROFILE:", primaryProfile)
if (this.isSubscribed) {
currentProfile.subscriptions = currentProfile.subscriptions.filter((channel) => {

View File

@ -13,7 +13,6 @@ if (window && window.process && window.process.type === 'renderer') {
const remote = require('@electron/remote')
dbLocation = remote.app.getPath('userData')
console.log("DB", dbLocation)
dbLocation = dbLocation + '/history.db'
} else {
dbLocation = 'history.db'

View File

@ -54,7 +54,6 @@ const actions = {
} else {
// We want the primary profile to always be first
// So sort with that then sort alphabetically by profile name
console.log('PROFILE DB RESULTS', results)
const profiles = results.sort((a, b) => {
if (a._id === 'allChannels') {
return -1
@ -68,13 +67,10 @@ const actions = {
})
if (state.profileList.length < profiles.length) {
console.log("STATE LIST LESS RTHAN PROFILES LENGTH")
console.log(profiles, state.profileList)
console.log("ROOTSTATE:SETTINGDEFATL", rootState.settings.defaultProfile)
const profileIndex = profiles.findIndex((profile) => {
return profile._id === rootState.settings.defaultProfile
})
console.log("INDEX", profileIndex)
if (profileIndex !== -1) {
dispatch('updateActiveProfile', profileIndex)
}

View File

@ -252,7 +252,6 @@ const actions = {
},
ytGetPlaylistInfo ({ rootState }, playlistId) {
console.log("PALYLIST INTOFOF")
return new Promise((resolve, reject) => {
console.log(playlistId)
console.log('Getting playlist info please wait...')
@ -298,7 +297,6 @@ const actions = {
limit: 'Infinity',
requestOptions: { agent }
}).then((result) => {
console.log("RESULT PLAYLIST", result)
resolve(result)
}).catch((err) => {
reject(err)