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 29, 2022
1 parent 66e91c4 commit cadef03
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 cadef03

Please sign in to comment.