mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Don't show the app-bar if embedded
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@
|
||||
dense
|
||||
color="#efcac3"
|
||||
light
|
||||
v-if="$vuetify.breakpoint.width > 1000"
|
||||
v-if="$vuetify.breakpoint.width > 1000 && !$store.getters['prefs/isEmbedded']"
|
||||
class="desktop-buttons-container"
|
||||
>
|
||||
<v-btn
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="desktop-buttons-container">
|
||||
</div>
|
||||
</v-app-bar>
|
||||
<div v-else>
|
||||
<div v-else-if="!$store.getters['prefs/isEmbedded']">
|
||||
<v-navigation-drawer
|
||||
v-model="drawer"
|
||||
app
|
||||
|
||||
@@ -83,6 +83,10 @@ const PrefsStore = {
|
||||
|
||||
apiUrl (state, getters) {
|
||||
return getters.getPreference('instance', process.env.VUE_APP_PIPED_URL || 'https://pipedapi.kavin.rocks')
|
||||
},
|
||||
|
||||
isEmbedded () {
|
||||
return window.self !== window.top
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user