Add support for setting a default homepage.

This commit is contained in:
FireMasterK
2021-07-19 01:50:35 +05:30
parent 18eb12688a
commit 584f1854e2
2 changed files with 22 additions and 0 deletions

View File

@@ -30,6 +30,18 @@ export default {
components: {
Navigation,
},
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;
}
},
};
</script>