Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added add to home screen banner for login in screens on mobile #865

Merged
merged 1 commit into from Oct 6, 2021

Conversation

PeerRich
Copy link
Member

@PeerRich PeerRich commented Oct 6, 2021

Let people know they can add the app to their home screen for a "full-screen" experience

image

@PeerRich PeerRich added the ✨ feature New feature or request label Oct 6, 2021
@vercel
Copy link

vercel bot commented Oct 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/cal/calendso/4jaGa8uZouBQN7RqRLrPimZ7HN6G
✅ Preview: https://calendso-git-feat-add-to-homescreen-cal.vercel.app

const [closeBanner, setCloseBanner] = useState(false);

if (typeof window !== "undefined") {
if (window.matchMedia("(display-mode: standalone)").matches) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't show the banner if the app is already being opened in "standalone" mode

@PeerRich PeerRich merged commit effbd44 into main Oct 6, 2021
@PeerRich PeerRich deleted the feat/add-to-homescreen branch October 6, 2021 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant