mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Even more reindenting
This commit is contained in:
parent
887690074d
commit
d02641e802
2 changed files with 34 additions and 33 deletions
27
src/App.vue
27
src/App.vue
|
@ -25,24 +25,25 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Navigation from "@/components/Navigation";
|
||||
import Navigation from '@/components/Navigation'
|
||||
export default {
|
||||
components: {
|
||||
Navigation,
|
||||
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;
|
||||
mounted () {
|
||||
if (window.location.pathname === '/' || window.location.pathname.length == 0) {
|
||||
switch (this.getPreferenceString('homepage', 'trending')) {
|
||||
case 'trending':
|
||||
break
|
||||
case 'feed':
|
||||
this.$router.push('/feed')
|
||||
break
|
||||
default:
|
||||
break;
|
||||
break
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -12,8 +12,8 @@ module.exports = {
|
|||
importWorkboxFrom: 'local',
|
||||
runtimeCaching: [{
|
||||
urlPattern: /\.(?:png|svg|ico)$/,
|
||||
handler: 'CacheFirst',
|
||||
}],
|
||||
handler: 'CacheFirst'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue