From c45004dc119b0b8ad4df32575c34fea13cbb8ec2 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Sat, 11 Oct 2025 16:09:50 -0600 Subject: [PATCH] Remove PWA limitations stuff --- src/components/buttons/IosPwaLimitations.tsx | 23 -------------------- src/pages/parts/player/PlayerPart.tsx | 15 ++++++------- 2 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 src/components/buttons/IosPwaLimitations.tsx diff --git a/src/components/buttons/IosPwaLimitations.tsx b/src/components/buttons/IosPwaLimitations.tsx deleted file mode 100644 index 328d8c23..00000000 --- a/src/components/buttons/IosPwaLimitations.tsx +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable no-alert */ -import { Icon, Icons } from "../Icon"; - -function IosPwaLimitations() { - const showAlert = () => { - alert( - "Due to Appleās limitations, Picture-in-Picture (PiP) and Fullscreen are disabled on iOS PWAs. Use the browser version to re-enable these features.\n" + - "Tip: To hide the iOS home indicator, use guided access within the PWA!", - ); - }; - - return ( - - ); -} - -export default IosPwaLimitations; diff --git a/src/pages/parts/player/PlayerPart.tsx b/src/pages/parts/player/PlayerPart.tsx index 22f54dd8..c664ec9f 100644 --- a/src/pages/parts/player/PlayerPart.tsx +++ b/src/pages/parts/player/PlayerPart.tsx @@ -1,6 +1,5 @@ import { ReactNode, useRef, useState } from "react"; -import IosPwaLimitations from "@/components/buttons/IosPwaLimitations"; import { BrandPill } from "@/components/layout/BrandPill"; import { Player } from "@/components/player"; import { SkipIntroButton } from "@/components/player/atoms/SkipIntroButton"; @@ -37,8 +36,7 @@ export function PlayerPart(props: PlayerPartProps) { const inControl = !enabled || isHost; const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent); - const isIOSPWA = - isIOS && window.matchMedia("(display-mode: standalone)").matches; + const isPWA = window.matchMedia("(display-mode: standalone)").matches; const [isShifting, setIsShifting] = useState(false); const [isHoldingFullscreen, setIsHoldingFullscreen] = useState(false); @@ -204,7 +202,9 @@ export function PlayerPart(props: PlayerPartProps) {