mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
Fix for default home page.
This commit is contained in:
parent
9b18f2eff2
commit
826bdf4997
11
src/App.vue
11
src/App.vue
@ -26,17 +26,6 @@ export default {
|
|||||||
NavBar,
|
NavBar,
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (window.location.pathname === "/" || window.location.pathname.length == 0)
|
|
||||||
switch (this.getPreferenceString("homepage", "trending")) {
|
|
||||||
case "trending":
|
|
||||||
break;
|
|
||||||
case "feed":
|
|
||||||
this.$router.push("/feed");
|
|
||||||
return;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.getPreferenceBoolean("watchHistory", false))
|
if (this.getPreferenceBoolean("watchHistory", false))
|
||||||
if ("indexedDB" in window) {
|
if ("indexedDB" in window) {
|
||||||
const request = indexedDB.open("piped-db", 1);
|
const request = indexedDB.open("piped-db", 1);
|
||||||
|
@ -31,6 +31,15 @@ export default {
|
|||||||
activated() {
|
activated() {
|
||||||
document.title = this.$t("titles.trending") + " - Piped";
|
document.title = this.$t("titles.trending") + " - Piped";
|
||||||
if (this.videos.length > 0) this.updateWatched(this.videos);
|
if (this.videos.length > 0) this.updateWatched(this.videos);
|
||||||
|
switch (this.getPreferenceString("homepage", "trending")) {
|
||||||
|
case "trending":
|
||||||
|
break;
|
||||||
|
case "feed":
|
||||||
|
this.$router.push("/feed");
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchTrending(region) {
|
async fetchTrending(region) {
|
||||||
|
Loading…
Reference in New Issue
Block a user