Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fermuch
· 7y ago · 0 comments
Is there a way to know when a site is loaded from the home screen instead of the browser?
Comments
[–]
EmielMols
7y ago
Yes, window.navigator.standalone
[–]
NightlyDev
7y ago
As the previous guy said you can check for standalone on iOS. You can also add an parameter to the URL so it opens eg. /?homescreen or something like that.