diff --git a/resources/js/Layouts/MainLayout.vue b/resources/js/Layouts/MainLayout.vue index 4d0a8e9..2e3bf2d 100644 --- a/resources/js/Layouts/MainLayout.vue +++ b/resources/js/Layouts/MainLayout.vue @@ -4,47 +4,32 @@ import MainFooter from "@/Components/FlightsGoneBy/MainFooter.vue"; import Radar from "@/Components/FlightsGoneBy/Radar.vue"; import StatusNotifications from "@/Components/FlightsGoneBy/StatusNotifications.vue"; import ToastNotifications from "@/Components/FlightsGoneBy/ToastNotifications.vue"; -import {router, usePage} from "@inertiajs/vue3"; +import { router, usePage } from "@inertiajs/vue3"; import { ref } from "vue"; import NotificationListener from "@/Components/FlightsGoneBy/NotificationListener.vue"; -import {SharedProps} from "@/Types/types"; +import { SharedProps } from "@/Types/types"; import PushNotificationPrompt from "@/Components/PushNotificationPrompt.vue"; import CopyPageButton from "@/Components/FlightsGoneBy/CopyPageButton.vue"; + const transitionKey = ref(0); -const page = usePage().props +const page = usePage().props; -router.on('success', () => { +router.on("success", () => { transitionKey.value++; }); - -const isIOS27PlusPWA = (() => { - const ua = navigator.userAgent; - - const isStandalone = - window.matchMedia('(display-mode: standalone)').matches || - (navigator as Navigator & { standalone?: boolean }).standalone; - - if (!isStandalone) return false; - - // iPhone / iPad detection - const isIOS = - /iPhone|iPad|iPod/.test(ua) || - (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1); - - if (!isIOS) return false; - - // iOS 27+ detection (Safari version token) - const version = ua.match(/Version\/(\d+)/); - - return version && parseInt(version[1]) >= 27; -})(); diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index b275f6f..a430ded 100644 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -2,7 +2,7 @@ - + {{ config('app.name', 'Laravel') }}