Even more reindenting

This commit is contained in:
root 2021-07-20 10:59:47 +05:30
parent 887690074d
commit d02641e802
No known key found for this signature in database
GPG key ID: BB51838571827D85
2 changed files with 34 additions and 33 deletions

View file

@ -25,24 +25,25 @@
</template> </template>
<script> <script>
import Navigation from "@/components/Navigation"; import Navigation from '@/components/Navigation'
export default { export default {
components: { components: {
Navigation, Navigation
}, },
mounted () { mounted () {
if (window.location.pathname === "/" || window.location.pathname.length == 0) if (window.location.pathname === '/' || window.location.pathname.length == 0) {
switch (this.getPreferenceString("homepage", "trending")) { switch (this.getPreferenceString('homepage', 'trending')) {
case "trending": case 'trending':
break; break
case "feed": case 'feed':
this.$router.push("/feed"); this.$router.push('/feed')
return; break
default: default:
break; break
}
}
}
} }
},
};
</script> </script>
<style> <style>

View file

@ -12,8 +12,8 @@ module.exports = {
importWorkboxFrom: 'local', importWorkboxFrom: 'local',
runtimeCaching: [{ runtimeCaching: [{
urlPattern: /\.(?:png|svg|ico)$/, urlPattern: /\.(?:png|svg|ico)$/,
handler: 'CacheFirst', handler: 'CacheFirst'
}], }]
} }
} }
} }