added toast padding
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Xeovalyte 2023-01-22 20:02:53 +01:00
parent 388d989229
commit 2f16e356f7
4 changed files with 12 additions and 6 deletions

View File

@ -50,10 +50,15 @@ const messaging = ref(null)
onMounted(() => {
auth.value = getAuth()
Device.getInfo().then(info => {
if (info.platform === 'ios') document.getElementsByClassName('top-right')[0].classList.add('toastios')
});
if (process.client) {
if ('serviceWorker' in navigator && window.isSecureContext) {
Device.getInfo().then(info => {
if (info.platform === 'web') registerSW()
else document.getElementsByClassName('top-right')[0].classList.add('toastios')
});
}
@ -224,10 +229,13 @@ const ledenlijst = ref([])
provide('firebase', { db, ledenlijst, isAuthenticated, user, userData, userPersons, auth, users, userAllPersons, getPersons, calEvents, news, registrationToken, contestTimes, competitors, registrationToken })
</script>
<style scoped>
<style>
.body {
padding-top: 10px;
margin-bottom: env(safe-area-inset-bottom);
}
.toastios {
padding-top: 10px;
}
</style>

View File

@ -39,7 +39,7 @@ export default defineEventHandler(async event => {
},
webpush: {
notification: {
icon: '/ios/256.png'
icon: '/ios/256.png',
}
},
topic: topic,

View File

@ -5,8 +5,6 @@ import { getAuth } from 'firebase-admin/auth'
const config = useRuntimeConfig()
console.log('testing', config)
export const app = initializeApp({
credential: cert({
"project_id": "wrbapp",