Skip to content

Commit

Permalink
fix: nav buttons show when fullscreen or on standalone pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabster28 committed Jul 14, 2020
1 parent 0d2d170 commit b3dd17c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"
>
<q-btn
v-if="$q.platform.is.electron"
v-if="$q.platform.is.electron || fs"
flat
dense
round
Expand All @@ -26,7 +26,7 @@
@click="leftDrawerOpen = !leftDrawerOpen"
/>
<q-btn
v-if="$q.platform.is.electron"
v-if="$q.platform.is.electron || fs"
flat
dense
round
Expand Down Expand Up @@ -287,6 +287,13 @@ export default {
methods: {
checkFs() {
this.fs = window.innerHeight == screen.height;
if (
window.matchMedia('(display-mode: standalone)').matches ||
window.navigator.standalone ||
document.referrer.includes('android-app://')
) {
this.fs = true;
}
},
toggle() {
this.$q.dark.toggle();
Expand Down

1 comment on commit b3dd17c

@vercel
Copy link

@vercel vercel bot commented on b3dd17c Jul 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.