Skip to content

Commit

Permalink
change default page to home page when local api is enabled and home p…
Browse files Browse the repository at this point in the history
…age isnt hidden when entering a channel url
  • Loading branch information
ChunkyProgrammer committed Nov 25, 2024
1 parent 8a984d7 commit e516619
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/renderer/store/modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const actions = {
commit('setRegionValues', regionValues)
},

async getYoutubeUrlInfo({ state }, urlStr) {
async getYoutubeUrlInfo({ rootState, state }, urlStr) {
// Returns
// - urlType [String] `video`, `playlist`
//
Expand Down Expand Up @@ -630,9 +630,12 @@ const actions = {
}
subPath = 'community'
break
default:
case 'videos':
subPath = 'videos'
break
default:
subPath = rootState.settings.backendPreference === 'local' && !rootState.settings.hideChannelHome ? 'home' : 'videos'
break
}
return {
urlType: 'channel',
Expand Down

0 comments on commit e516619

Please sign in to comment.