Skip to content

Commit

Permalink
Support dark mode in iOS 15 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-wzm committed Nov 28, 2022
1 parent 66e91c4 commit 2f23d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PWAPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 2f23d74

Please sign in to comment.