From 2f23d741bf659fe8c458938d934ce059eec142c0 Mon Sep 17 00:00:00 2001 From: Alex Wong Date: Sun, 27 Nov 2022 21:55:01 -0600 Subject: [PATCH] Support dark mode in iOS 15 and 16 --- src/components/PWAPrompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PWAPrompt.js b/src/components/PWAPrompt.js index e9618fc..ca834da 100644 --- a/src/components/PWAPrompt.js +++ b/src/components/PWAPrompt.js @@ -38,7 +38,7 @@ const PWAPrompt = ({ } }, [isVisible]); - const isiOS13AndUp = /OS (13|14)/.test(window.navigator.userAgent); + const isiOS13AndUp = /OS (13|14|15|16)/.test(window.navigator.userAgent); const visibilityClass = isVisible ? styles.visible : styles.hidden; const iOSClass = isiOS13AndUp ? styles.modern : "legacy";